Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to a member function row() on a non-object
#1

[eluser]BrandonDurham[/eluser]
Why would this be happening here?
Code:
$sql = "UPDATE prizes SET
    email                 = '$email',
    fname                = '$first_name',
    lname                = '$last_name',
    address1            = '$address',
    address2             = '$add_address',
    city                 = '$city',
    state                 = '$state',
    zip                  = '$zip',
    date_submitted      = '$date_submitted',
    opt_in                 = '$opt_in',
    company             = '$company',
    day_phone            = '$day_phone',
    evening_phone        = '$evening_phone'
    WHERE id            = '8'
";

$query = $this->db->query($sql);
$row = $query->row();
Here's the full error:
Quote:Fatal error: Call to a member function row() on a non-object in /Users/Deefee/Documents/Sites/073MHG232/system/application/models/db_functions.php on line 88
Line 88 is $row = $query->row();.


Messages In This Thread
Fatal error: Call to a member function row() on a non-object - by El Forum - 08-25-2007, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB