In PHPMyAdmin you can import data in the database table in various formats e.g. SQL, CSV XML, etc. formats.
While import CSV file in PHPMyAdmin need to make sure that it should be the valid format like – the number of columns, data.
Similar functionality can be implemented with PHP where read the uploaded file and insert the record in the MySQL database table.
It is possible to check for duplicate entry with PHP while import but it is not possible in PHPMyAdmin.