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/98685-bind_param-mysqli/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.