DB_Table qf_type 'timestamp' cannot be escaped...

From: Date: Tue, 18 Apr 2006 16:06:53 +0000
Subject: DB_Table qf_type 'timestamp' cannot be escaped...
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23715@lists.php.net to get a copy of this message
Hi, I want to use the 'timestamp' qf_type in DB_Table. This is going perfect until the database class, DB_mysqli, wants to escape the values. My form posts an array $vrow with the form field names as indexes and their values as array values. But the timestamp form field are several selectboxes ( Confused ) and are passed as an array. When calling $dbtable_object->insert($vrow) I get an error: Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given Errtype: Warning File: /usr/local/php5/lib/php/DB/mysqli.php Line: 857 How can I get pass this and still use the timestamp QuickForm qf_type in DB_Table? Thanx! Regards, - Charlie http://www.pear-forum.org

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