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)
#3
Interestingly enough, there is no error. 

Plus, I just realized that when we first add an entry the record is created, so the insert works fine.

The record can then be read, but upon editing that record the update does not work. 

Even more interesting is, I can update other fields but not the two name fields. I thought maybe it was the privileges but the user has select, insert, update, and reference for privileges.

Based on the UserSpice code how should an db->update be formulated. It seems pretty simple to me:

db->update('A_table', 'An_ID', 'A_Column_to_Update');

Is it perhaps the  $fields=array('rtu_name'=>$rtu_name);?

Maybe the update isn't actually seeing new data?

Thanks,
Rob
  Reply


Messages In This Thread
RE: DB Update - Not working (that's the way it seems) - by rob@selectech.us - 02-14-2019, 02:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)