I am developing a web application using php and bootstrap.Uploading an excel sheet is one of the requirements of my application.Now i am partially implemented it (extract the data from excel sheet),the next thing i want upload these data into database table but failed.Here is my code
$file = fopen($filename, "r");
$row=1;
while (($Data = fgetcsv($file, 10000, ",")) !== FALSE)
{
echo $Data[0];
}
fclose($file);
Here is the output of $Data[0]

I want to store the data in database table with these fields .How can i achieve this?