Welcome Guest, Not a member yet? Register   Sign In
Database Error!!
#10

[eluser]danmontgomery[/eluser]
Code:
AND “4” IS NULL

Have you read the userguide? You don't really seem to be getting any closer, just making guesses.

If you're only passing one argument to where(), it has to be a valid MySQL argument, ie:

Code:
$this->db->where("some_field = 3");

Or an array, structured like $field => $value:

Code:
$this->db->where( array( "some_field" => 3 ) );

Otherwise, you have to pass it at least two parameters, with a field as the first and the value as the second:

Code:
$this->db->where('some_field', 3);

From the looks of it, you're just passing it "4" now

Code:
$this->db->where(4);

Or, it I'm guessing it looks like:

Code:
$this->db->where($searchGroup, $groupSearch);


Messages In This Thread
Database Error!! - by El Forum - 03-04-2010, 09:30 AM
Database Error!! - by El Forum - 03-04-2010, 09:45 AM
Database Error!! - by El Forum - 03-04-2010, 09:46 AM
Database Error!! - by El Forum - 03-04-2010, 09:47 AM
Database Error!! - by El Forum - 03-04-2010, 09:48 AM
Database Error!! - by El Forum - 03-04-2010, 09:52 AM
Database Error!! - by El Forum - 03-04-2010, 09:54 AM
Database Error!! - by El Forum - 03-04-2010, 11:15 AM
Database Error!! - by El Forum - 03-05-2010, 09:27 AM
Database Error!! - by El Forum - 03-05-2010, 10:28 AM
Database Error!! - by El Forum - 03-05-2010, 11:32 AM
Database Error!! - by El Forum - 03-05-2010, 11:52 AM
Database Error!! - by El Forum - 03-05-2010, 12:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB