codeigniter-base-model
codeigniter-base-model copied to clipboard
help me ,thanks!
trafficstars
when use this model Encountered a problem, I want to query a data from the database, condition is: whether there is such a person
already exist, for example: select * from'table_name'where email='email'; but I can't get an
array or an object. I want a Boolean value, such as needle or discount
I'm so resolved with "count_by", search number, there is no better solution
I would do this $user = $this->user_model->get_by('email', $email); if ($user === FALSE) { // User does not exist }