Re: how to check function's execution?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux