Showing Configured Incorrectly in Joomla
===

i am using custom code in joomla to upload the csv file. here is my code, its not working any help ?

    <?php
if(isset($_POST['submit'])) 

   { 

     $filename=$_POST['filename']; 

     $handle = fopen("$filename", "r"); 

     while (($data = fgetcsv($handle, 1000, "|")) !== FALSE) 

     {   

       $import="INSERT into jos_hello(rollno,name,fathername,dob,session,college,category,year,enrolment,course) values('$data[0]','$data[1]','$data[2]','$data[3]','$data[4]','$data[5]','$data[6]','$data[7]','$data[8]','$data[9]')"; 

      mysql_query($import) or die(mysql_error()); 

     } 

     fclose($handle); 

     print "Import done";  

  

   } 

   
?>

Using two fields as ` <form name="form1" action="http://localhost/bict1/recordsupdated.php" enctype="multipart/form-data" method="post">
      <input name="filename" type="file" id="filename"> ` & 
    Another code for submit the file as ` <td><input type='submit' name='submit' value='submit'></form>    </td>`