i have made a advanced profile page for wapdesire/ lava where the owners can change the person who is displayed as featured member . its just a simple Y or N in the users table .witrh a new row added being featured ,
so to get the selected user i have used this code
$feat = mysql_fetch_array(mysql_query("SELECT name FROM dave_users WHERE featured='Y'"));
echo "<a href=\"featured.php?action=main&who=$who&sid=$sid\">$feat[0]</a><br/>";
one problem i have is that its only showing a blank profile not the the one of the user that has the Y in the featured part.
it shows the name as the link correctly. but as i say it shows a blank profile not the profile of that particular user .
i need help to get the code for the who= part of it .
cos its not showing any id number so its obviously not displaying that users profile. i have tried all this below but it still dont work . if($who==""||$who==0)
{ $mnick = $_POST["mnick"]; $who = getuid_nick($mnick); }
$who = $_GET["who"]; $whoinfo = mysql_fetch_array(mysql_query("SELECT id FROM dave_users WHERE featured='".$who."'"));