» 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


calls a local function when a file (that was previously uploaded) is deleted
void onDeleteFileExecuteCallBackFunction ( String functionName )

use this function when you want to apply certain logic (or display a certain message) when an (uploaded) file is deleted. Use of this function is similiar in a way to a java interface: you must define a function with the name specifed in the function call.

This function must take ONE parameter (an array). The indexes of this array are the following:

  • id (the id of the row where the file was removed)
  • field (the field for which the file was removed)
  • Details

    Requires setFileUpload, (callback function)
    Type function
    Returns void


    name of the local function to be invoked when a file is deleted


    function deleteDocument($array){
      $id         = $array[id];
      $field      = $array[field];
      if ($id != ''){
        $success = qr("UPDATE tblMenu SET 
                 fldURL = '' WHERE pkMenuID = $id");

    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.