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
Help with $dv->update
#2
So here are the steps I would take.

I would start simple.

1. I would include the
Code:
users/init.php
instead of just the db class. There are other things you may need beyond just the db class. The most obvious thing is that you're using Input::get which is part of the input class which you haven't included.

Start there and see if that works.

2. If it doesn't, I would do something really simple just to make sure you're able to get SOMETHING into the DB. Without including the init, it probably doesn't even know the $user->data()-id, which is probably part of your problem, so once you've included the init, try doing

Code:
if ($updatestatus != 1) {
Code:
$db->insert('letters',['author'=>$user->data()->id]);
Code:
}

And make sure you're getting that into the db. If you need help beyond that, let me know.

  Reply


Messages In This Thread
Help with $dv->update - by muhammedc - 03-29-2017, 12:47 PM
Help with $dv->update - by mudmin - 03-30-2017, 02:25 PM
Help with $dv->update - by muhammedc - 03-30-2017, 06:22 PM
Help with $dv->update - by mudmin - 03-30-2017, 06:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)