DB:: error when using UPDATE on $dbConn->query()

From: Date: Wed, 28 Jul 2004 13:35:00 +0000
Subject: DB:: error when using UPDATE on $dbConn->query()
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13891@lists.php.net to get a copy of this message
Fatal error: Call to a member function on a non-object in on line 28 ## start $activate = $dbConn->query("UPDATE users set activated = '1' where id = '$aId' and aKey = '$aKey'"); //$activate = $dbConn->query("select * from users"); if (DB::isError($activate) || $activate->numRows() == 0) { die('Your account could not be activated'); }; print("<p>Your account has been activated!</p>"); ## end line 28 on my code is this.. if (DB::isError($activate) || $activate->numRows() == 0) { i had try to use the select syntax on mysql to this query(), and no errors found. But when i did use "update" that error occured. I have read the manual, but i did not get that i can't use it with static data. Anyway, why is this error appearing? -- Louie Miranda http://www.axishift.com

« previous php.pear.general (#13891) next »