From:             kustomjs at gmail dot com
Operating system: Ubuntu 9.04
PHP version:      5.2.9
PHP Bug Type:     MySQLi related
Bug description:  getting Fatal errors member function

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


-- 
Edit bug report at http://bugs.php.net/?id=48319&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48319&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48319&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48319&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48319&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48319&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48319&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48319&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48319&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48319&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48319&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48319&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48319&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48319&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48319&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48319&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48319&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48319&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48319&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48319&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48319&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48319&r=mysqlcfg

Reply via email to