uploading csv file via php script
Hi, there I am having a locally hosted xampp and I am trying to upload student database
the CSV file contents are Code:
3,Tata,mahata to understand how uploading in database works so I was able to upload with following code in file upload.php Code:
<?php The code for addstudent.php page is Code:
<?php bucket.php is just a few classes to handle sql here you can see bucket.php Code:
<?php |
Quote:
Quote:
Please provide any error codes being generated when the script is run. If you are not seeing any errors then I would first verify that the server is not suppressing them. I have no familiarity with xampp but you should locate the php.ini file used by PHP under Apache and set... Code:
display_errors = on Also check the Apache error logs for the platform. Based on what you see, try to figure out what is happening then return here if when you have more information! Also, please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link from that page, How To Ask A Question The Smart Way. The more effort you put into understanding your problem and framing your question, the better others can help. The programming forum is open to all platforms and languages, but the audience here is decidedly Unix/Linux oriented. If your platform is no Linux or a Unix variant, as suggested by xampp, you might want to post your question to a forum frequented by users of the OS you are using. Good luck! |
I can't comment on your error, but I can tell you that you should be using PDO for all of your SQL calls.
|
php script to import csv
I am new here and just joined , I am just sharing php script that help to other user,
The original post is https://www.phpflow.com/php/import-csv-file-into-mysql/ PHP Code:
|
All times are GMT -5. The time now is 10:31 AM. |