Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Read Data

  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Location
    Lahore, Pakistan
    Posts
    150
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Read Data

    Hi./....

    now i have a excel workseett with contain some information.....
    once i save the work in the tab delimeted text file...

    HOW am i going to use php to read it into mysql table....with the
    predefined columns..

    thanz..

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Location
    West Midlands, UK
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You already started one thread on this and someone told you how to read the file, you don't need to open up multiple threads on the same subject.

    To separate the tabbed data into variables that you can store in a database you can use explode

    PHP Code:
    $array explode("\t"$string); 


  •  

    Posting Permissions

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