Re: DB_Table qf_type 'timestamp' cannot be escaped...
| From: | Mark Wiesemann | Date: | Tue, 18 Apr 2006 16:56:44 +0000 |
| Subject: | Re: DB_Table qf_type 'timestamp' cannot be escaped... | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23719@lists.php.net to get a copy of this message | ||
Charlie van de Kerkhof wrote:
> 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.
This is expected behavior: date and time types are displayed as select
boxes, using QF's date element.
> 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
This is not expected behavior. ;-)
Can you please send me your table definition class and, only if you
modify anything coming from DB_Table, your script?
(No need to send the files to the list. It would even block them with a
.php extension.)
Regards,
Mark