Guest User

Untitled

a guest
Apr 26th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?
  2. function hashCheck($str) {
  3. $sql = "SELECT FROM link WHERE hash='$str'";
  4. $res = mysql_query($res)
  5.  
  6. if (mysql_num_rows($res) > 0) {
  7. $str = generateHash();
  8.  
  9. return $str;
  10. }
  11.  
  12. else {
  13. return $str;
  14. }
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment