Ok I have been stuck on my website for like 2 days with this? My question is When a user say bob and he goes on bills Profile and they are not friends it will show a add as a friend picture?
Question:
How to make a picture pop up if they are not friends?
My code so far is…
$recqu = $_SESSION['username'];
$sql747 = mysql_query("SELECT *
FROM Friends
WHERE Reciver LIKE '%$recqu%' or Sender LIKE '%$recqu%'");
$areFriends = mysql_num_rows($sql747);
IF ($areFriends ==0)
{
$_SERVER['PHP_SELF'];
}
else
{
while ($lolz = mysql_fetch_array($sql747))
{
if ($lolz['accepted'] == 3)
{
$yes = 2;
}
else
{
$yes = 1;
}
}
}
I don’t know what the meaning of
$lolz['accepted']are. So, my code below is by best guess.