I have a large text file of data I need to insert into a mysql database.
I know this probably isn't the best way to do it, but I cannot use phpmyadmin or telnet, so I was wondering...can I use php to add the records?
I know that with phpmyadmin I could create a file like
INSERT INTO table name VALUES
(1, 'data', 'data', 'data' );
and upload it. How can I do that with php?
I tried just adding a php database connection above the insert command and saving the file as php, but that didn't work. As you can see, I'm a newbie, so if anyone has a simple solution, please help. I do plan to learn how to do it the "proper" way, but I am just trying to help a non-profit dog shelter get something up before I go on vacation. Thanks!!!