Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php script

Status
Not open for further replies.

snuk

Technical User
Jan 13, 2003
10
0
0
SK
hi, how can I load txt-file to mysql table in php script?
thx M.
 
For CSV txt files you can use something like this:

$result = mysql_db_query("LOAD DATA LOCAL INFILE 'your_file_name.txt' INTO TABLE table_name FIELDS TERMINATED BY ','");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top