row_array question |
I have this function in a model_
Code: function get_one($where_clauses) However, is there a way to get a warning (like return false) if more than one row is fetched? I could use result_array and count the rows, but then I get multidimensional array in return. Any better solution?
Expanding on Narf's correct but very short reply
PHP Code: function get_one($where_clauses) Or, using a ternary instead of an "if" PHP Code: function get_one($where_clauses) |
Welcome Guest, Not a member yet? Register Sign In |