I’m having trouble selecting data from inside one of the tables in the database.
I’m trying to display a user’s profile when their name is clicked on.
<?php
$view = mysql_fetch_array(mysql_query("select * from users where id=$view"));
if (empty ($view[id])) {
print "No such user.";
exit;
}
print "<center><b><u>$view[user]</b></u> ($view[id])</center><br>";
print "Rank: $view[rank]<br>";
?>
The link they will click is:
viewpage.php?page_id=4&view=....
I can’t get this to work.
1 Answer