Jump to content

retruve user info


ecabrera

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.