if(isset($_POST['submit']))
{
$file=$_FILES['file']['tmp_name'];
$handle=fopen($file,"r");
while(($r=fgetcsv($handle,"500",",")) !==FALSE)
{
$sql=mysqli_query($con,"insert into `` values('" . implode("','",$r) . "')") or die(mysql_error()) ;
//echo implode("','",$r); if i run this it shows the data of csv file
}
}
Query is not working. It only shows blank page.
mysql_API andmysqli_API. Change:mysql_error()tomysqli_error(). Then you get the error messageinsert into ''?<table_name>