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
UPDATE FORM
#2
http://pastebin.com/8iYMCJFh

A few notes:
1. You only need DB::getInstance if you are not getting that from the header. It doesn't hurt, but you don't need it. I need to update the database documentation.

2. You were close on your fields array, but on the right side of the array you either need a variable that you created earlier or the input::get to get the info directly from the form.

3. When you're doing your update query, the table name needs to be 'tablename' unless you are using a variable. If you are using a variable, then you don't need quotes.

4. If you do Redirect::to you don't need the word location. Even if header/location doesn't have a problem on your server, it could come up if you ever move servers.

I hope this helps. Did you get my email?
  Reply


Messages In This Thread
UPDATE FORM - by picassoo - 12-28-2016, 10:24 AM
UPDATE FORM - by mudmin - 12-28-2016, 02:40 PM
UPDATE FORM - by picassoo - 12-28-2016, 03:06 PM
UPDATE FORM - by picassoo - 12-28-2016, 03:06 PM
UPDATE FORM - by picassoo - 12-28-2016, 03:18 PM
UPDATE FORM - by picassoo - 12-28-2016, 03:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)