Hi this is Sukhdev,
I am new in php and wish to know how to import the data from excel sheet to mysql Table;

  1. I have a table with the name of city in mysql with following fields;

  2. what would be the function for uploading above fields, if I filled the data in format and click on upload, all fields can be updated in above table.
    awaiting for your reply

Recommended Answers

All 3 Replies

You would need understanding of OOP and classes.
Here is the class doing that.

If you don't need to do it very often, just do it manually using PHPMyAdmin.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.