Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created April 26, 2012 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/2495624 to your computer and use it in GitHub Desktop.
Save thomasplevy/2495624 to your computer and use it in GitHub Desktop.
PHP: mysql_query
$result = mysql_query("SELECT * FROM $table");
if(!$result) { die("SOMETHING BROKE!"); }
while($row = mysql_fetch_array($result)) {
echo '
'.$row['row'].'
';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment