i finally managed to get it to echo the request, BUT, there are hundreds of the same request!
this is my code so far:
Any ideas why this is happening? have i created some kind of loop or something?PHP Code:$get = mysql_query("SELECT * FROM `friend_requests` WHERE `username` = '$session->username' ");
if (mysql_num_rows($get)==0){
echo ("<font color='black' face='Arial'><u><b>Friend Requests</b></u></font><br><br>You have no new friend requests");
}else{
echo ("<font color='black' face='Arial'><u><b>Friend Requests</b></u></font><br><br>
<font color='#003399' face='Arial'><b>$reqs[by]</b></font><b></b> wants to be friends with you!<br>
[<a href='newfriends.php?friends=accept&user=$reqs[by]'>Accept</a>]
[<a href='newfriends.php?friends=delete&user=$reqs[by]'>Ignore</a>]
[<a href='userinfo.php?user=$reqs[by]' target='blank'>View Profile</a>]"); //displays requests and shows accept delete links
}
}
break;



Reply With Quote
and sorry for being a pest lol

Bookmarks