ajaxCRUD.com

» 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

appendUploadFilename

append the value of the row to the beginning of the filename
void appendUploadFilename ( String fieldName )
Use this function to prevent easily "overwriting" filenames on upload. You can have each filename easily be unique by attaching the primary key (or some other field) to the filename.

Details

Requires setFileUpload
Type function
Returns
Default no value appended

Parameters

fieldName
The name of the field which VALUE will be appended

Example

$tblDemo->setFileUpload("fldFilename", "uploads/", "uploads/");
$tblDemo->appendUploadFilename("pkRowID");

See also

New, Edit

 

"just what i [was] look[ing] for..."
~Sergey

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.
Close