RE: [PHP] how to check function's execution?

From: Date: Tue, 08 Sep 2009 13:44:13 +0000
Subject: RE: [PHP] how to check function's execution?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-297790@lists.php.net to get a copy of this message
From: A.a.k > > hello > I have a problem to check whether a function successfully inject to database > or not, here is the code : > if($object->dbupdate()) > echo 'done'; > else > echo 'damn!'; > inside the 'if' statement $obj->dbupdate() doesn't execute , how can I > execute and check if it was a successful inject within this function? is it > even possible or should I check within class or something? I normally would have dbupdate() do something like: $temp_set = pg_query($conn, $Sql); $numRows = pg_affected_rows($temp_set); return $numRows; There should be something similar available in the other database APIs. Bob McConnell

« previous php.general (#297790) next »