Skip to content

Instantly share code, notes, and snippets.

@rye761
Created August 16, 2013 03:30
Show Gist options
  • Save rye761/6247072 to your computer and use it in GitHub Desktop.
Save rye761/6247072 to your computer and use it in GitHub Desktop.
MySQL query wrong :(
$query = "SELECT * FROM `users` WHERE sid64 = :sid64";
$query_params = array(
':sid64' => $sid64
);
try {
$stmt = $db->prepare($query);
$result = $stmt->execute($query_params);
} catch (PDOException $ex) {
return ("Conversion Failed!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment