Results 1 to 2 of 2

Thread: Inserting a text file line into database

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Inserting a text file line into database

    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

  2. #2
    Join Date
    Jul 2007
    Location
    New Mexico
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can insert just about anything into MySQL. First separate your input to get the line desired, then send it to MySQL.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •