The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
problem with update function - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10) +--- Thread: problem with update function (/showthread.php?tid=137) |
problem with update function - mudmin - 05-23-2016 I sent you an email with the entire new db class. I wonder if it went to your spam folder. Here is a link to it... http://hastebin.com/yagitumole.coffee problem with update function - lefox - 05-23-2016 thanks for getting to this so quickly. Tried your new db class and all pages are returning this error. Something to do with the count? problem with update function - mudmin - 05-23-2016 That is very very weird. I will send those classes to a few others to test them out. I guess you can roll back to the original ones. I will do some more testing and let you know what I find. What type of server are you running? WAMP/XAMPP/NGINX? What version? problem with update function - brian - 05-23-2016 That looks to be a WAMP3 error page as far as I can tell... problem with update function - mudmin - 05-27-2016 I am going to go through and document this better but... Many of the methods in the DB class do not fully process the query by default. I tried to make them, but that breaks other things in the system as posted above. When you see a method like... Code: public function get($table, $where){ Code: return $this->action('SELECT *', $table, $where); The method is actually really flexible because you can tell it what you want to do with it. So you can append Code: ->first() Code: ->count() Code: ->results() Code: ->lastId() Again, more documentation is coming, but things like Code: findById Code: get |