PDA

View Full Version : Inserting a text file line into database



martin_tppc
06-04-2007, 04:41 AM
Hi, i'm still quite new to using MySQL and PHP and i'm wondering how do i get only one line from a text file n insert it into MySQL database using PHP?

For Example:

(inside text file)
Name:
King Kong
Tel:
1234567
Email: KingKong@hotmail.com

(inside Database)
Id Email
1 KingKong@hotmail.com

Robert Shvern
07-09-2007, 03:23 PM
You can insert just about anything into MySQL. First separate your input to get the line desired, then send it to MySQL.