Warning: include_once(/home/loudcanv/public_html/includes/location_functions.php): failed to open stream: Permission denied in /home/ajaxcrud/public_html/preheader.php on line 44

Warning: include_once(): Failed opening '/home/loudcanv/public_html/includes/location_functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ajaxcrud/public_html/preheader.php on line 44
ajaxCRUD.com » ajaxCRUD API :: showCheckboxAll - Use PHP & AJAX to CRUD from a mysql database table (create / read / update / delete)


» a PHP class to Create, Read, Update, & Delete from a mysql database table using AJAX

   by loud canvas media

AjaxCRUD Class Documentation / Reference Material

<< Reference overview
<< Home


Set ALL checkboxes for a field (in a column) to be on of off.
void showCheckboxAll ( String fieldName, String display_data )
To be used as a "header" checkbox. When selected it sets ALL checkboxes for that field to be of a certain value.

Use this function only if you have an true/false type of field (two options). As such you want a simple checkbox to toggle between the options. This method will allow a single checkbox to select ALL columns


Type function
Returns void


The database field name
Show or do not show the value when clicking it (true or false)


$tblDemo->showCheckboxAll('fldField3', true);

Click for active example here

See also

New, Edit


"Thanks for the great script, you rock big time."

What is a business/commercial website?

A commercial website is one created for a business, for which purpose is generating revenue or cash flow of any type (and that isn't under a non-profit organization). So if you're selling a product, selling advertisement, selling a service, or just marketing a commercial business, your site is commercial. A company website is also commercial even if it doesn't sell anything, as it's purpose is to front a commercial company.