codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

help me ,thanks!

Open ycancc opened this issue 12 years ago • 2 comments
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

ycancc avatar Jun 19 '13 09:06 ycancc

I'm so resolved with "count_by", search number, there is no better solution

ycancc avatar Jun 19 '13 10:06 ycancc

I would do this $user = $this->user_model->get_by('email', $email); if ($user === FALSE) { // User does not exist }

curtiscovington avatar Sep 06 '13 16:09 curtiscovington