This is the Top Ad Block. Hidden via CSS for phpMyCRUD site
2. Column Headings
By default, phpMyCRUD uses the field names from the database for the column headings. You can change column headings by calling the method set_alt_field_names(). Note: set_alt_field_names() does NOT change the field names in the database, it merely changes the text that is displayed in column headings and on the Insert and Update forms.

Hiding Columns
Columns can be hidden by calling the hide_field() method.
The 'Actions' column can be hidden by setting $crud_obj->show_actions = 0.
The 'Checkbox' column can be hidden by setting $crud_obj->show_checkbox = 0.

Example 2: Changing/Hiding Columns (See it Live!)
The addition of the switch() statement allows conditionally changing Column Headings based on which table is being displayed.



<< Prev Example  |  Next Example >>

© 2007-2011 RGB World, Inc. All rights reserved.