Home How to get mysqli error in different environments?
Reply: 0

How to get mysqli error in different environments?

user818
1#
user818 Published in April 25, 2018, 12:13 pm

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.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.514908 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO