Created
December 11, 2011 19:29
-
-
Save msanroman/1462252 to your computer and use it in GitHub Desktop.
query_concat
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 | |
private function query_concat($key, $value, $query){ | |
$query.'AND {$key} = '; | |
if($value != '') $query = $query.'"'.$value.'"'; | |
else $query = $query.'NULL '; | |
return $query; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment