My project runs fine on local machine, but not on web server

AsDfgR

New Member
My project is working fine on my local machine but not on the web server. I think it is the stored procedures, because the error that I am getting is:\[code\]Fatal error: Call to a member function fetch_array() on a non-object in ...\[/code\]The collation of the database is "utf8_general_ci".Just a simple example:I have a stored procedure called offices:\[code\]CREATE PROCEDURE offices()BEGINSELECT * FROM offices; END//\[/code\]And the php code:\[code\]<?php require ("db.php");$db = dbConnect();$result = $db->query("CALL offices()");while(list($id, $city, $address) = $result->fetch_array())echo "($id) $city: $address ";?>\[/code\]
 
Back
Top