In my LOCAL/DEV environment, the mysqli query is performing OK. However, when I upload it on my WEBHOST environment, I got this error;
Fatal error: Call to a member function bind_param() on a non-object in...
Here is the code:
global $mysqli; $stmt = $mysqli->prepare("SELECT id, description FROM tbl_page_answer_category WHERE cur_own_id = ?"); $stmt->bind_param('i', $cur_id); $stmt->execute(); $stmt->bind_result($uid, $desc);
To check my query, I tried to execute the query via control panel phpmyadmin and the result is OK.
If there are any lacking information, please tell me so that I can immediately provide.