Guest User

Untitled

a guest
Jan 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. //checks if any info is already in the table, if there is, it delets it
  2. $aye = mysql_query("SELECT username FROM `drunk_char` WHERE username = '$user'");
  3. $aye2 = mysql_num_rows($aye);
  4. while($aye2 > 0)
  5. {
  6. mysql_query("DELETE FROM `drunk_char` WHERE username = '$user'");
  7. }
Add Comment
Please, Sign In to add comment