Skip to content

Instantly share code, notes, and snippets.

@gfmurphy
Created November 22, 2011 16:34
Show Gist options
  • Save gfmurphy/1386108 to your computer and use it in GitHub Desktop.
Save gfmurphy/1386108 to your computer and use it in GitHub Desktop.
My Pre-FizzBuzz Test
<?php
// Make the following code better *in the simplest possible way*
// Assume $result is a resource identifier returned from a call to mysql_query with a select query as an argument in which you don't expect any results to be returned
if(mysql_num_results($result) > 0)
$error = true;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment