Created
July 10, 2012 04:37
-
-
Save bkilshaw/3081037 to your computer and use it in GitHub Desktop.
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 | |
function query_select_single($query) { | |
$results = mysql_query($query); | |
if(mysql_num_rows($results) >= 1) { | |
return mysql_fetch_assoc($results); | |
} | |
return FALSE; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment