daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest May 17th, 2018 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2.     function hashCheck($str) {
  3.         $sql = "SELECT hash FROM link WHERE hash='$str'";
  4.         $res = mysql_query($sql);
  5.        
  6.         while ($i = mysql_fetch_assoc($res)) {
  7.             $hash = $i['hash'];
  8.  
  9.             if ($hash == $str) {
  10.                 $str = 1;
  11.            
  12.                 return $str;
  13.             }
  14.         }
  15.     }
  16. ?>
RAW Paste Data
Top