This is a discussion on RE: [PHP] logging of sql queries - success/failed within the PHP General forums, part of the PHP Programming Forums category; > I've got a script that imports several CSV files via the Load > Data File > command. > &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> 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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|