Guest User

help

a guest
Oct 19th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <?php
  2.  
  3. include("conexao.php");
  4.  
  5. $ignoreID = $_GET['ignoreID'];
  6.  
  7. $sql = mysql_query("SELECT * FROM Registro, Desafios WHERE Registro.user_facebook_id != '$ignoreID' AND Desafios.desafio_from != '$ignoreID' ORDER BY RAND() LIMIT 1");
  8. $row = mysql_fetch_array($sql);
  9. $name = $row['user_facebook_name'];
  10.  
  11. echo $name;
Advertisement
Add Comment
Please, Sign In to add comment