Created
November 22, 2011 16:34
-
-
Save gfmurphy/1386108 to your computer and use it in GitHub Desktop.
My Pre-FizzBuzz Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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