i am trying to code this private profile thing for my site but got a few problems
PHP Code:
$private = mysql_fetch_array(mysql_query("SELECT private FROM htp_users WHERE id='".$who."'"));
if($private[0]=='1')
{
$unick = getnick_uid($who);
addonline(getuid_sid($sid),"Viewing $unick Profile","<a href=\"index.php?action=viewuser&who=$who\">go there</a>");
echo "<card id=\"main\" title=\"$unick's Profile\">";
echo "<p align=\"center\">";
echo "<u>$unick Profile is private</u><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Home</a><br/>";
echo "</p>";
echo "</card>";
}else if(budres($uid, $who)==2||ismod($uid)||mypro(getuid_sid($sid), $who)
{
then u can view the profile...
}
Comment