fou2enve Posted March 30, 2008 Share Posted March 30, 2008 $stmt = $dbconn->prepare("SELECT * FROM `?_table` WHERE `name`='?'"); $stmt->bind_param('ss', $city, $name); Fatal error: Call to a member function bind_param() on a non-object in C:\htdocs\beta\process.php on line 122 ive run the query in phpmyadmin and it works without errors, ive read online that if the query fails then $stmt becomes null and then bind_param fails. but the variables are valid when i echo them, so im lost. any ideas? Link to comment https://forums.phpfreaks.com/topic/98681-mysqli-bind_param/ Share on other sites More sharing options...
mwasif Posted March 31, 2008 Share Posted March 31, 2008 Can you post your code? Link to comment https://forums.phpfreaks.com/topic/98681-mysqli-bind_param/#findComment-505940 Share on other sites More sharing options...
aschk Posted April 1, 2008 Share Posted April 1, 2008 $dbconn is NOT an object (of mysqli type i expect). So wherever you think you're creating $dbconn, you're not. Link to comment https://forums.phpfreaks.com/topic/98681-mysqli-bind_param/#findComment-506297 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.