Re: how to check function's execution?
| From: | Bobby Pejman | Date: | Mon, 07 Sep 2009 21:58:31 +0000 |
| Subject: | Re: how to check function's execution? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-297776@lists.php.net to get a copy of this message | ||
Your dbupdate is probably executing a mysql_query command. Is so, update results from mysql_query
will be either true on success or false on failure. If your query also fails due to perms it will
return false.
------Original Message------
From: A.a.k
To: php-general@lists.php.net
ReplyTo: A.a.k
Subject: [PHP] how to check function's execution?
Sent: Sep 7, 2009 2:52 PM
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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php