Guest User

Untitled

a guest
Jun 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. $sql="SELECT * FROM friends WHERE user='$u' AND friend='$f'";
  2. $result=mysql_query($sql);
  3. $count=mysql_num_rows($result);
  4. //stuff
  5. if ($count==0)
  6. {
  7. //add as friend and send PM
  8. }
Add Comment
Please, Sign In to add comment