note 103422 added to mysqli.query

From: Date: Tue, 12 Apr 2011 13:35:37 +0000
Subject: note 103422 added to mysqli.query
Groups: php.notes 
Request: Send a blank email to php-notes+get-178759@lists.php.net to get a copy of this message
The cryptic "Couldn't fetch mysqli" error message can mean any number of things, including: 1. You're trying to use a database object that you've already closed (as noted by ceo at l-i-e dot com). Reopen your database connection, or find the call to <?php mysqli_close($db); ?> or <?php $db->close(); ?> and remove it. 2. Your MySQLi object has been serialized and unserialized for some reason. Define a wakeup function to re-create your database connection. http://php.net/__wakeup 3. Something besides you closed your mysqli connection (in particular, see http://bugs.php.net/bug.php?id=33772) 4. You mixed OOP and functional calls to the database object. (So, you have <?php $db->query() ?> in the same program as <?php mysqli_query($db) ?>). ---- Server IP: 69.147.83.197 Probable Submitter: 99.121.83.201 ---- Manual Page -- http://www.php.net/manual/en/mysqli.query.php Edit -- https://master.php.net/note/edit/103422 Del: integrated -- https://master.php.net/note/delete/103422/integrated Del: useless -- https://master.php.net/note/delete/103422/useless Del: bad code -- https://master.php.net/note/delete/103422/bad+code Del: spam -- https://master.php.net/note/delete/103422/spam Del: non-english -- https://master.php.net/note/delete/103422/non-english Del: in docs -- https://master.php.net/note/delete/103422/in+docs Del: other reasons-- https://master.php.net/note/delete/103422 Reject -- https://master.php.net/note/reject/103422 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178759) next »