My query was just fine but i needed to check if there are duplicates on the ID and date/time field so i used
mysqli_query($link, "
INSERT INTO wsmdata VALUES ('', '".mysqli_real_escape_string($link, $_POST['wsmID'])."',
'".mysqli_real_escape_string($link, $a[0])." ".mysqli_real_escape_string($link, $a[1])."', '".mysqli_real_escape_string($link, $a[2])."')
ON DUPLICATE KEY
UPDATE bar = '".mysqli_real_escape_string($link, $a[2])."'") or die (mysqli_error($link));
I'm having a foreach loop that loops through all the uploaded files. It procese 1008 rows into the database but then i get:
Fatal error: Maximum execution time of 30 seconds exceeded in F:\XAMPP\htdocs\logsysteem\adddata.php on line 30