Welcome Guest, Not a member yet? Register   Sign In
Help With DB Class
#1

[eluser]ShoeLace1291[/eluser]
So, In the past I've always just used my own queries with this->db->query(), but now I've found it easier to use the select, limit, etc functions. I am having a problem that I can't figure out why it's happening. I am getting an error with the Driver Class and a preg_match call, but I don't know why.

Quote:preg_match() expects parameter 2 to be string, object given

Here is my query so far:
Code:
$this->db->select('signup_id, first_name, last_name, date_posted, status, comments');
        $this->db->from('betasignups');
        $this->db->where('status', '0');
        $this->db->order_by('signup_id', 'desc');
$this->db->limit(10);

$query = $this->db->get();

Not sure why I am getting that error. Any help is greatly appreciated!
#2

[eluser]ShoeLace1291[/eluser]
Sorry, I already fixed the problem!




Theme © iAndrew 2016 - Forum software by © MyBB