The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DB Update - Not working (that's the way it seems)
#4
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.
  Reply


Messages In This Thread
RE: DB Update - Not working (that's the way it seems) - by Brandin - 02-14-2019, 02:38 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)