Skip to content

Instantly share code, notes, and snippets.

@SecretDeveloper
Last active September 27, 2015 04:07
Show Gist options
  • Save SecretDeveloper/1208778 to your computer and use it in GitHub Desktop.
Save SecretDeveloper/1208778 to your computer and use it in GitHub Desktop.
PHP badness
<?php
$result = mysql_query('SELECT * FROM Customers');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment