Re: DB_Table and HTML_Quickform

From: Date: Tue, 24 Oct 2006 19:38:56 +0000
Subject: Re: DB_Table and HTML_Quickform
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25609@lists.php.net to get a copy of this message
I have tried adding the heading to the database schema omitting the 'type' or 'size keys' like such: // define an array for the table schema (for the database) var $col = array( /* */ // unique row ID 'id' => array(
		'type'    => 'integer',
'require' => true ), // Name heading 'heading1' => array( // form element definition 'qf_type' => 'header', 'qf_label' => 'This is a heading!', ), 'title' => array(
		'type'    => 'varchar',
		'size'    => 4,
'require' => true, // form element definition 'qf_type' => 'select', 'qf_label' => 'Title', 'qf_vals' => array( '' => 'Please Select', 'Mr' => 'Mr', 'Mrs' => 'Mrs', 'Miss' => 'Miss', 'Ms' => 'Ms' ), // HTML attributes 'qf_attrs' => array( 'id' => 'title' ) ) ) This works, but the database table from being built? Can I set the column type to false or 'ignore' or something similar? Matthew

« previous php.pear.general (#25609) next »