Guest User

Untitled

a guest
Mar 15th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. $sql = "SELECT id,username,password,cookie_pass,actcode,rank FROM `".$settings['db_table']."` WHERE id = '".$_COOKIE['pml_userid_cookie']."' LIMIT 1";
  2. $query = mysql_query($sql);
  3. if(mysql_num_rows($query) == 1) {
  4. // User exists
  5. $row = mysql_fetch_array($query);
  6. $id = htmlspecialchars($row['id']);
  7. $username = htmlspecialchars($row['username']);
  8. $password_db = htmlspecialchars($row['password']);
  9. $cookie_pass = htmlspecialchars($row['cookie_pass']);
  10. $actcode = htmlspecialchars($row['actcode']);
  11. $rank = htmlspecialchars($row['rank']);
Add Comment
Please, Sign In to add comment