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. Link to comment https://forums.phpfreaks.com/topic/276553-fetch_assoc/ Share on other sites More sharing options...
newhip Posted April 5, 2013 Author Share Posted April 5, 2013 oops nvm very dumb mistake on my part Link to comment https://forums.phpfreaks.com/topic/276553-fetch_assoc/#findComment-1423008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.