Definition
function setFieldIndexTable($fieldname, $tablename, $id, $label, $restriction = null)
forms/forms2.php, line 300
Description
setFieldIndexTable
Setup an index table for a specific field, especially useful for things like select boxes and the like. Used to grab a list of possible values and labels from another table in the database
Parameters
- $fieldname @param
- string $fieldname @param string $tablename @param string $id fieldname in the indexed table that has the values in it @param string $label fieldname in the indexed table that has the labels in it @param string $restriction something like "date = $date" @access public @return void
Code
<?php
function setFieldIndexTable($fieldname, $tablename, $id, $label, $restriction = null)
{
$this->table->fields[$fieldname]->setIndexTable($tablename, $id, $label, $restriction);
}
?>