» 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
Allows you to set logic allowing if deletion of certain rows is permissible or not
void validateDeleteWithFunction ( String functionName )
Use this function when you wish to use logic to determine if a row can be deleted or not. In other words - you can base the decision on data in OTHER fields in the row. As such, the user-defined function will have access to the id (primary key) of the row to make logic-based decision and must return TRUE or FALSE. The parameters of your custom function (which YOU define) must take in ONE (1) argument ($id) and return TRUE or FALSE.