ecabrera Posted May 28, 2012 Share Posted May 28, 2012 ok so im trying to display user info but it gives me Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website\profile.php on line 41 this is a part of the code <?php elseif(isset($_GET['id']) === true && empty($_GET['id']) === false){ $id = $_GET['id']; //line 41 $idquery = mysql_query("SELECT * FROM `users` WHERE `user_id` = '$id' "); $rows = mysql_fetch_assoc($idquery); ?> Quote Link to comment https://forums.phpfreaks.com/topic/263250-retruve-user-info/ Share on other sites More sharing options...
ecabrera Posted May 28, 2012 Author Share Posted May 28, 2012 fix it need to add conection to db Quote Link to comment https://forums.phpfreaks.com/topic/263250-retruve-user-info/#findComment-1349125 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.