» 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


add a css class to a field (used for things like jquery validation or field masking)
void modifyFieldWithClass( String fieldName, String cssClassName )
Use this function when you wish to do some javascript/jquery validation or simply add a class to it to format it a certain way. For example, you'd use this function if you wanted make a field required (when adding) or to mask certain fields like phone number.


Type function
Default void


name of the field you want to format
name css class(es) to be applied


Example 1:
   $tblDemo->modifyFieldWithClass("fldDateField", "datepicker");

Example 2:
    $tblDemo->modifyFieldWithClass("fldZip", "zip required");

Any javascript validation based on the applied css class must be in the file validation.js

See also

New, Edit


"I just wanted to take the time to say I have been looking for an ajax table for months, I probably could have built one by now. Ive seen and Ive tried many different ajax tables and I have to say this ones by far the "BEST" out there! Thank you so much Loud Canvas Media. for all of your hard work. AWESOME! AWESOME! 5 stars."

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.