Advertisement
Guest User

Untitled

a guest
Sep 12th, 2010
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. // config
  3. include("../config.php");
  4.  
  5. mysql_connect($host, $user, $pass) or die(mysql_error());
  6. mysql_select_db($database) or die(mysql_error());
  7.  
  8. $query = 'SELECT email FROM recipients where email =' . intval($_POST['number']);
  9. $result = mysql_query($query) or die(mysql_error());
  10. if(mysql_num_rows($result) > 0) {
  11. //username already exists
  12. echo "yes";
  13. }
  14. else{
  15. echo "no";
  16. }
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement