I have a csv file, which is generated weekly, and loaded into a mysql database. I need to make a report, which will include various statistics on the records imported. The first such statistic is how many records were imported.
I use PHP to interface with the database, and will be using php to generate a page showing such statistics.
However, the csv files are imported via a mysql script, quite separate from any PHP.
Is it possible to calculate the records that were imported and store the number in a different field/table, or some other way?
Adding an additional timefield to work out fields added since a certain time is not possible, as the structure of the database can not be changed.
Is there a query I can use while importing from a mysql script, or a better way to generate/count the number of imported records from within php?