RE: [PEAR] MDB debug
| From: | Lukas Smith | Date: | Mon, 05 May 2003 11:28:09 +0000 |
| Subject: | RE: [PEAR] MDB debug | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5235@lists.php.net to get a copy of this message | ||
> From: Jeroen Houben [mailto:jeroen@terena.nl]
> Sent: Monday, May 05, 2003 1:25 PM
> Alright, so that's now working fine, thanks.
> Still don't understand why the ! sign in:
> $query = 'UPDATE docsections SET
> section_id='.$db->getIntegerValue($move_to).' WHERE doc_id=!';
>
> doesn't work. Another bug?
PEAR::MDB only supports the '?' placeholder.
! and & are PEAR::Db specific.
MDB's ? is pretty much what ! is to PEAR::DB.
You are responsible to do any sort of conversions, either by using the
get*Value methods or passing an array with types.
Regards,
Lukas