Skip to content

Instantly share code, notes, and snippets.

@emerose
Created February 7, 2010 00:19
Show Gist options
  • Save emerose/297081 to your computer and use it in GitHub Desktop.
Save emerose/297081 to your computer and use it in GitHub Desktop.
<?php
//...
$sql = "SELECT * FROM Users WHERE " .
"(Username = '" . addslashes($username) . "') " .
"AND (Token = '" . addslashes($token) . "')";
$rs = $db->executeQuery($sql);
if ( $rs->next() ) {
//...
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment