Reply to Re: PDOStatement error : Call to a member function execute() on a non-object
Posted by Michael Fesser on 11/15/06 20:19
..oO(loudwinston@gmail.com)
>I added a print_r of $db->errorInfo() before the execute statement and
>get the following
>
>Array
>(
> [0] => 00000
> [1] => 1047
> [2] => Unknown command
>)
I should have had a look on your MySQL version before - prepared
statements require MySQL 4.1 or higher.
Your client lib supports them, but not the server itself.