Welcome Guest, Not a member yet? Register   Sign In
Resetting the value of $this
#5

[eluser]nydeveloper[/eluser]
Try:

Code:
$this->db->close();

// then reopen the database.
$this->load->database();

I tried this, and it seemed to have no effect. I may have explained the issue incorrectly. The var_dump($this); statement returns the same output both before and after the close and load statements above. Here is a sample output:

Quote:object(Student_Model)#14 (21) { ["student_id"]=> string(1) "6" ["student_sector"]=> int(90) ["student_grouping"]=> int(40) ["grade_average"]=> int(3) }

I've removed a few of the variables from the output, but you get the point... I don't want any of these particular variables saved in memory. The reason for this is I'm trying to update a different table, one without these particular variables. However, when I try updating one specific column, the above variables are automatically added to the update statement. Sad


Messages In This Thread
Resetting the value of $this - by El Forum - 02-27-2012, 06:13 PM
Resetting the value of $this - by El Forum - 02-27-2012, 06:59 PM
Resetting the value of $this - by El Forum - 02-27-2012, 07:17 PM
Resetting the value of $this - by El Forum - 02-27-2012, 07:59 PM
Resetting the value of $this - by El Forum - 02-27-2012, 08:16 PM
Resetting the value of $this - by El Forum - 02-27-2012, 08:36 PM
Resetting the value of $this - by El Forum - 02-27-2012, 09:03 PM
Resetting the value of $this - by El Forum - 02-27-2012, 09:28 PM
Resetting the value of $this - by El Forum - 02-27-2012, 09:46 PM
Resetting the value of $this - by El Forum - 02-27-2012, 09:56 PM
Resetting the value of $this - by El Forum - 02-27-2012, 10:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB