11-20-2016, 08:46 PM
I'm not really sure why this is happening in the Validate class. One thing to note that if you modify our class and then update, you could lose those changes. It's probably better to create a Validate2.php class.
That said, take a look at the User class since it does db queries.
You need a construct....
$this->_db = DB::getInstance();
Then when you construct your queries it is
$query = $this->_db->query(" your query....
That said, take a look at the User class since it does db queries.
You need a construct....
$this->_db = DB::getInstance();
Then when you construct your queries it is
$query = $this->_db->query(" your query....