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@xxxxxxxxxxxxx ReplyTo: A.a.k Subject: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php