Skip to content

Instantly share code, notes, and snippets.

@bkilshaw
Created July 10, 2012 04:37
Show Gist options
  • Save bkilshaw/3081037 to your computer and use it in GitHub Desktop.
Save bkilshaw/3081037 to your computer and use it in GitHub Desktop.
<?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