Guest User

Untitled

a guest
Jun 13th, 2014
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2.     include("conexao.php");
  3.     $email = $_POST['email'];
  4.     $sql = "SELECT * FROM usuarios where email='".$email."';
  5.     $res = mysql_query($sql);
  6.     $row = mysql_num_rows($res);
  7.       if($row > 0){
  8.         echo "1"; // retorna um error
  9.        }
  10.      else{
  11.        echo "0"; // retorna tudo ok
  12.     }  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment