» a PHP class to Create, Read, Update, & Delete from a mysql database table using AJAXby loud canvas media
AjaxCRUD Class Documentation / Reference Material
<< Reference overview
show only a few fields from your table instead of all of them
void showOnly ( String fieldList )
Use this function when you have a large table and only want to show a FEW fields by default instead of all of them. This prevents you from having to call omitField, omitAddField or omitFieldCompletely for each field you don't want to show.
You can also use this function to REORDER your database fields (different from the order defined by your schema), if desired.
You can also use this function to ADD custom-defined fields to your HTML table, which do not necessarily need to exist in your db table. Then you can apply custom display logic on them with formatFieldWithFunction or formatFieldWithFunctionAdvanced.