02-14-2019, 02:38 PM
It is potential that the update is not seeing new data - I would dump($rtu_name) and make sure it is returning what you expected.
If $db->count() is not returning any results but there is no error, its updating, just no new update itself was recorded.
The DB class update function takes the following in this order:
-table
-id (default id or maybe looks for a primary key? im not sure), you can specify an array for this too like array('ID_Column_Name' => id_value)
-fields in array format eg. array('ColumnName' => ColumnValue)
Thank you,
Brandin.
If $db->count() is not returning any results but there is no error, its updating, just no new update itself was recorded.
The DB class update function takes the following in this order:
-table
-id (default id or maybe looks for a primary key? im not sure), you can specify an array for this too like array('ID_Column_Name' => id_value)
-fields in array format eg. array('ColumnName' => ColumnValue)
Thank you,
Brandin.