Jump to content

NOt pulling the info form the databass


bob2006

Recommended Posts

Try this...

[code=php:0]
$query = "SELECT * FROM admin WHERE userid = '$id'";
$result = mysql_query($query);
if (!$result){
  die('Could run query: ' .mysql_error());
}
 
if(mysql_fetch_row($result)){ // We're only expecting one row, so mysql_fetch_row should be fine
  echo '<a href="form.php">Go back</a> username is taken!
}
[/code]

Regards
Rich

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.