Guest User

Untitled

a guest
Jul 16th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. <?php
  2.  
  3. $result = mysql_query("SELECT * FROM table");
  4.  
  5. while($row = mysql_fetch_array($result))
  6. {
  7. mysql_query("update table SET pw=(hash('sha256', $row['username'].$row['pw']))");
  8. }
  9.  
  10. ?>
Add Comment
Please, Sign In to add comment