05-23-2016, 07:02 PM
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
http://hastebin.com/yagitumole.coffee
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
|
05-23-2016, 07:02 PM
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
05-23-2016, 07:17 PM
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?
05-23-2016, 07:42 PM
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?
05-23-2016, 08:04 PM
That looks to be a WAMP3 error page as far as I can tell...
05-27-2016, 01:33 PM
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 |