with this update, It no shows any error, and when I sent the print, it shows the information that I want to add into the database but it does not add it...
if(isset($_POST["submit_file"]))
$file = $_FILES["file"]["tmp_name"];
$file_open = fopen($file,"r");
$count = 0;
while(($csv = fgetcsv($file_open, 100, ",")) !== false)
{
$agente = isset($csv[0])? $csv[0]: null;
$revenue = isset($csv[1])? $csv[1]: null;
$css = isset($csv[2])? $csv[2]: null;
$rating = isset($csv[3])? $csv[3]: null;
$absent = isset($csv[4])? $csv[4]: null;
$score = isset($csv[5])? $csv[5]: null;
$count++;
if($count>1){
$query = "INSERT INTO metricas values ('$agente', $revenue, $css, $rating, $absent, $score)";
print $query; }
}
?>