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? Quote Link to comment Share on other sites More sharing options...
mwasif Posted March 31, 2008 Share Posted March 31, 2008 Can you post your code? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.