On 25 August 2011 14:07, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> 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. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php