Welcome Guest, Not a member yet? Register   Sign In
convert value from routes/uri to string
#3

(04-13-2019, 02:13 AM)Wouter60 Wrote: It's easier with Query Builder syntax:

PHP Code:
public function user($key$value)
{
 
  return $this->db->where($key,$value)->get('users')->row();


Previously thanks for the answer, I know and before I tried using the query builder and it worked.
but the query builder has restrictions (in my opinion). therefore I used a manual query because of its flexibility and I decided to always use manual queries.

But I will try to understand the query builder to be more flexible.
Reply


Messages In This Thread
convert value from routes/uri to string - by DELE - 04-13-2019, 01:42 AM
RE: convert value from routes/uri to string - by DELE - 04-13-2019, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB