Allora ce l'hai una tabella per salvare i file?
Se no, fai una table tipo:
CREATE TABLE uploaded_files_(
`id` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(100) NOT NULL,
`dataInserimento` DATE NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX nome(`nome`)
);
a questo punto, dove fai $log .= "File 1 was uploaded
";
mettici una select poi un insert o una UPDATE:
Codice PHP:
//Importa la tua connessione
$query = "SELECT id FROM uploaded_files WHERE nome LIKE '$img1_name'";
$result = mysql_query($query, $db);
$row = mysql_fetch_array($result);
if(!$row)
{
$query = "INSERT INTO uploaded_files VALUES ('$img1_name', '".date("Y-m-d")."')";
}
else
{
$query = "UPDATE uploaded_files SET dataInserimento = '".date("Y-m-d")."'";
}
mysql_query($query, $db);