RE: logging of sql queries - success/failed

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

 



> I've got a script that imports several CSV files via the Load 
> Data File
> command. 
> 
> I need to know if each import query was successful or failed.
> 
>  
> 
> Is there a way to log the success/failure of each query including how
> many rows were inserted? 
> 
>  
> 


I assum you are using MySQL, since you didn't specify.  Typically,
mysql_query() will return false if the query failed, and
mysql_affected_rows() will return the number of rows affected.

JM

-- 
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