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

displayAs

displays the a field name in the table under a psudoname.
void displayAs ( String fieldName, String fieldDisplayTitle )
Use this function to refer to a database field as another name (ie if your fields all have a prefix you can remove them when displaying them).

This display title is referred to in all places in the table (adding & editing)

Details

Type function
Returns void
Default actual field name

Parameters

fieldName
The database field you want to display under another name
fieldDisplayTitle
The alternate title to display

Example

$tblDemo->displayAs("fldMyField", "My Field");
New, Edit

 

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