The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
problem with update function
#9
The update function automatically does the same thing as the ? in your prepared (bound) sql statement, so you're pretty much good to go. I use the update method a lot in foreach loops and things like that. It's quick when you're doing something simple, but what you're doing works just as well and is more readable.

dnd kills the page so it's more for tracking down errors. Basically it is a very simple helper that does a preformatted(one instance per line) var_dump and then kills the page so you get exactly what was put in the variable before anything else mucks with it. You can also do dump($variable); to do a preformatted var_dump without killing the page. I use those two helper functions constantly when trying to diagnose issues.

That's funny that you noticed $db->get. I never documented that method in the db class. I really don't use it enough to figure out why you're losing the info. I'll play with it. That doesn't seem right. I'll check back with you on that.

I'm also confused as to why Alpha 4 isn't working for you. I'm about to release 4.1 final, so I'm really interested in helping you track that down.


  Reply


Messages In This Thread
problem with update function - by lefox - 05-22-2016, 05:55 AM
problem with update function - by mudmin - 05-22-2016, 04:02 PM
problem with update function - by lefox - 05-22-2016, 04:40 PM
problem with update function - by mudmin - 05-22-2016, 04:42 PM
problem with update function - by lefox - 05-22-2016, 05:26 PM
problem with update function - by mudmin - 05-22-2016, 05:37 PM
problem with update function - by lefox - 05-22-2016, 05:58 PM
problem with update function - by lefox - 05-22-2016, 05:59 PM
problem with update function - by mudmin - 05-22-2016, 06:54 PM
problem with update function - by lefox - 05-22-2016, 07:28 PM
problem with update function - by mudmin - 05-22-2016, 07:43 PM
problem with update function - by lefox - 05-22-2016, 08:22 PM
problem with update function - by lefox - 05-22-2016, 08:29 PM
problem with update function - by mudmin - 05-22-2016, 08:34 PM
problem with update function - by lefox - 05-22-2016, 09:06 PM
problem with update function - by mudmin - 05-22-2016, 09:34 PM
problem with update function - by mudmin - 05-22-2016, 09:45 PM
problem with update function - by mudmin - 05-22-2016, 10:23 PM
problem with update function - by mudmin - 05-22-2016, 11:01 PM
problem with update function - by lefox - 05-23-2016, 06:42 PM
problem with update function - by mudmin - 05-23-2016, 07:02 PM
problem with update function - by lefox - 05-23-2016, 07:17 PM
problem with update function - by mudmin - 05-23-2016, 07:42 PM
problem with update function - by brian - 05-23-2016, 08:04 PM
problem with update function - by mudmin - 05-27-2016, 01:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)