10-05-2012, 05:58 AM
[eluser]PhilTem[/eluser]
You could make that code better readable by using
You don't need to check for empty($query) since it will always be different from NULL if your query was ran successfully (i.e. there were no MySQL-syntax errors)
You could make that code better readable by using
Code:
return $query->num_rows() ? $query->row_array() : FALSE;
You don't need to check for empty($query) since it will always be different from NULL if your query was ran successfully (i.e. there were no MySQL-syntax errors)