I am currently using phpmyadmin to upload .txt files into the db using sql which look something like this
LOAD DATA INFILE 'data.txt' INTO TABLE tmp LINES TERMINATED BY '\r\n';
INSERT INTO data
SELECT
SUBSTR(str,1,6),
SUBSTR(str,7,20),
FROM tmp;
Now is there a way to write some coding to run this command in web browser using php so that I don't need to manually go into phpmyadmin to type all of these into the sql?
Any help would be appreciated~Thanks~~