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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    look for a small script.....

    OK just to explain what I'm looking for is hard ...so which me good luck.....

    ok want I want to do is:

    I have 5 persons ( allan , bob,steve, mark and matt )

    I want to know where they work now.

    1- I want that those guy can go on my web page select their name and enter where they work.

    2- I want to have a list of those guys which who work where on the same page or another page

    I know that could sound easy for some poeple ...but I have try few script but they don't really do what I want and ...,my skill are very limited ...

    so if ever you have a suggestion it will be appreciated
    thank you and have a great day

  • #2
    Regular Coder saeed's Avatar
    Join Date
    Oct 2002
    Location
    West Yorkshire
    Posts
    343
    Thanks
    32
    Thanked 0 Times in 0 Posts
    sounds like home work ... did u read rules before signup?

    have a look at 1.5 or i'll do that for ya.

    1.5) No homework assignments - Do not post your entire homework assignment and request that other members do it for you. This is considered cheating, and your thread may even be used by your school to prove your guilt. Now, you may ask for advice or help on a specific aspect of your assignment that you're having trouble with. Use common sense as far as what's acceptable in terms of soliciting help with homework assignments.
    Don't click on this!

    #!/usr/bin/saeed

  • #3
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,371
    Thanks
    8
    Thanked 1,075 Times in 1,066 Posts
    I think it might be homework too ... but here's a hint to get started,
    using a simple flat-file database ...

    id|name|where they are working

    A simple text file called "work.txt" with items separated by pipes | ...

    1001|allan|stockroom
    1002|bob|receiving
    1003|steve|communication center
    1004|mark|marketing
    1005|matt|cafeteria

    Now, using PHP, you open that file and put into an array.
    You can compare their ID from a form to the array and determine
    who they are and where they work.

    You can change values in the array and re-save it (to save changes).

    Use Google to find out more about PHP flat-file databases, opening text files,
    using arrays, and saving text files.

  • #4
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you


  •  

    Posting Permissions

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