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

disallowEdit

disallows a field to be edited
void disallowEdit ( String fieldName )
Use this function to disable the ajax editing of a field in a table. This is often used for the fields where you want populated with data (on create) and never touched again (eg a Creation Datestamp). This function can be used in conjunction with the addValueOnInsert method, so that fields such as "fldCreateDate" can be set when a row is created and then is not editable afterward.

Details

Type function
Returns void

Parameters

fieldName
The database field name you don't want to be able to edit

Example

$tblDemo->disallowEdit('fldCreationDate');

See also

New, Edit

 

"Brilliant. Saved insane amounts of time. `nuff said."
~Soule

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