[PHP-DB] Re: MYSQLi fetch corrupting bound variables

2011-08-28 Thread Olivier Bietzer
Hello, Shouldn't you "execute" the query first, and then "bind_result" ?? In the php doc (http://jp2.php.net/manual/fr/mysqli-stmt.bind-result.php) the example is done this way... Hope this helps, Olivier Le 25/08/2011 13:04, Stuart Milne a écrit : Hi there Getting a weird issue with MyS

Re: [PHP-DB] Re: MYSQLi fetch corrupting bound variables

2011-08-25 Thread Richard Quadling
On 25 August 2011 14:07, Jim Giner wrote: > First glance:  your 'if' needs '= ='  not '=' No. Fully ... if (False !== ($stmt = $dbObj->prepare(...))) { ... } In PHP, assignments evaluate to the value assigned. If the value assigned can be evaluated as TRUE then the above test will pass.

[PHP-DB] Re: MYSQLi fetch corrupting bound variables

2011-08-25 Thread Jim Giner
First glance: your 'if' needs '= =' not '=' -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php