Pls help I need it badly thanks...

Discussion in 'PHP' started by iangarrinud, Oct 16, 2007.

  1. #1
    Hello guys,

    I want to learn php, writing all these data instead, to the textfile called employees.txt in the notepad of course. I heard its posible.

    Supposing you have a data already in a textfile.txt that contain

    MY CLIENTS DATA in employees.txt
    ID FIRSTNAME LASTNAME AGE
    1 IAN UY 27 delete edit
    2 JACKSON LEE 32 delete edit
    3 JEAN TY 38 delete edit
    4 JAMES HAT 22 delete edit
    5 ARMAN CO 20 delete edit

    and all i want is to make a php file that would display them all to a table format in view.php for example and of course I can EDIT and DELETE each one of them for example i would like to delete the first line IAN. Thats what exactly i want.

    any sample code and right codes pls give me...i am getting crazy about this php is very confusing..but I am not giving up...never...pls help...ty

    Pls help that would be greatly appreciated. Thanks..
    REPLY ASAP
     
    iangarrinud, Oct 16, 2007 IP
  2. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    not sure what exactly that delete and edit are there for.

    first off, are you wanting to do this off a text file? or mysql database? because those will yield two vastly different answers
     
    Lordy, Oct 16, 2007 IP
  3. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #3
    You do not need delete edit field in file, use mysql database (you can update /delete a record)
     
    it career, Oct 16, 2007 IP
  4. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Edynas, Oct 16, 2007 IP
  5. iangarrinud

    iangarrinud Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ok thanks guys for helping, but...
    actually, i had a exam with this and i saw the examples...inside the textfile.txt there is a file assuming and I can see the records as i have seen it, and inline with the records...each row you can edit and delete....from a text file with NO-DATABASE...i know I can do this at mysql thats why I get wondered for the first time but that possible....heheheh but anyways....thanks...

    any suggestions pls....try to research.....its posible...hehehe thanks..
     
    iangarrinud, Oct 16, 2007 IP
  6. iangarrinud

    iangarrinud Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Visit this...you will know....
    http://www.tizag.com/phpT/files.php

    thanks..its a file...
     
    iangarrinud, Oct 16, 2007 IP