ajaxCRUD.com

» a PHP class to create / read / update / delete from a database table using AJAX

   by loud canvas media

AjaxCRUD API Reference

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

 

"Great api. Really love the demo. "
~Ade