newhip Posted April 5, 2013 Share Posted April 5, 2013 Hey I have a piece of code that I sort of understand why it is not working but then i dont know how to get around it <?php include 'xconn.php'; $get_id = $_REQUEST["name"]; $seartt=mysql_query("SELECT * FROM work WHERE name=".$get_id); $row = mysql_fetch_assoc($seartt); ?> The error is "mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in" Not sure how to stagger or make this work. Any help is appreciated. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/276553-fetch_assoc/ Share on other sites More sharing options...
Solution newhip Posted April 5, 2013 Author Solution Share Posted April 5, 2013 oops nvm very dumb mistake on my part Quote Link to comment https://forums.phpfreaks.com/topic/276553-fetch_assoc/#findComment-1423008 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.