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); ?> 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 Link to comment https://forums.phpfreaks.com/topic/263250-retruve-user-info/#findComment-1349125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.