|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-18 21:00 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 13:00:01 2025 UTC |
Description: ------------ I am getting these errors: Fatal error: Call to a member function bind_param() on a non-object in /var/www/index.php on line 92 Fatal error: Call to a member function execute() on a non-object in /var/www/index.php on line 122 Reproduce code: --------------- with this code: default : // list operation $stmt = $db->prepare('SELECT id, email, quota FROM users'); $stmt->execute(); $stmt->bind_result($id, $email, $quota); // not good for large datasets $results = array(); while ($stmt->fetch()) { $results[] = array('id' => $id, 'email' => $email, 'quota' => $quota); } $stmt->close(); include WORKING_DIR.'/list.inc.php'; } $db->close(); Expected result: ---------------- I would like to get the page to work like this: http://white-box.us/manage/index.php