note 92573 added to mysqli.prepare

From: Date: Thu, 30 Jul 2009 01:03:07 +0000
Subject: note 92573 added to mysqli.prepare
Groups: php.notes 
Request: Send a blank email to php-notes+get-158895@lists.php.net to get a copy of this message
I don't know how obvious this was for anyone else, but if you attempt to prepare a query for a table that doesn't exist in the database the connection currently points to (or if your query is invalid in some other way, I suppose), an object will not be returned. I only noticed this after doing some digging when I kept getting a fatal error saying that my statement variable was not an set to an instance of an object (it was probably null). Replace NOSPAM with nimblepros to e-mail me. ---- Server IP: 64.71.164.2 Probable Submitter: 24.29.236.92 ---- Manual Page -- http://www.php.net/manual/en/mysqli.prepare.php Edit -- https://master.php.net/note/edit/92573 Del: integrated -- https://master.php.net/note/delete/92573/integrated Del: useless -- https://master.php.net/note/delete/92573/useless Del: bad code -- https://master.php.net/note/delete/92573/bad+code Del: spam -- https://master.php.net/note/delete/92573/spam Del: non-english -- https://master.php.net/note/delete/92573/non-english Del: in docs -- https://master.php.net/note/delete/92573/in+docs Del: other reasons-- https://master.php.net/note/delete/92573 Reject -- https://master.php.net/note/reject/92573 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158895) next »