Posts by Carlilton Queiroz • 109 points
3 posts
-
-1
votes1
answer7928
viewsA: Why Trying to get Property of non-object in?
I don’t know what this method returns: public function get_member_hash($username) { return $this->_db->read('SELECT * FROM ' . DATABASE_PREFIX . 'admins WHERE admin_email=:email OR…
-
5
votes2
answers29285
viewsA: How do I resolve the "Notice: Trying to get Property of non-object in" error?
The variable $count is an integer type value, not an object for you to call $count->rowCount. Do not use if ($count->rowCount > 0) { Use if ($count > 0)…
-
3
votes3
answers1085
viewsA: Calculate difference between two dates - I cannot convert the database date to Datetime
The problem is in the $Dataevent variable. It is of the string type and not Datetime. You need to transform it to the Datetime object function calculaDiferenca($DataEvento){ $hoje = new DateTime();…