Hi I am only new to php and I have already created a query that will insert data to mysql database but the clint wants to see a loading animation and not a progress bar to lessen the load in the browser. I checked in google on how to do it but I am not near to my objective. This is an excerpt in my php code:
foreach($line as $value)
{
$newline = explode(" ",$value[6]);
$date = trim($newline[0]);
$time = trim($newline[2]);
$newtime = date("H:i",strtotime($time));
try{
$query = $con->prepare("INSERT IGNORE INTO temp_logs(EmpID, ValidDate, ValidTime)VALUES(:id,:date,:time)");
$query->bindParam(':id',$value[2]);
$query->bindParam(':date',$date);
$query->bindParam(':time',$time);
$query->execute();
$row = $query->rowCount();
}
catch(PDOException $e){
echo $e->getMessage();
exit;
}
Thanks in advance.