If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    May 2003
    Member #

    What I am trying to do (favour for a friend) is to put online his shops employee's shifts.

    I propose to allow a text file upload with the necessary data in this file in the format employee number date,shift
    Such as
    Quote Originally Posted by textfile.txt
    0 01/01/06,0600-1200 02/01/06,1200-1700 05/01/06,1800-2200
    1 10/01/06,0600-1200 20/01/06,1200-1700 31/05/06,1800-2200
    and so on..

    The only problems (other than having to loop through using file() and exploding a lot, is what if they upload a file that says employee 10 is working 1800-2000 on the 06/06/06 and then uploads a new file saying that on that date, this employee is working a 1700-1900.

    Just wanted to see if you guys think my intended method is feasible or have any other ways?



  3. #2
    Senior Member mossoi's Avatar
    Join Date
    Apr 2003
    Englandshire, United Kingdomsville y'all!
    Member #
    1 times
    It is feasible but may be a long way round.

    You could have the script check whether an existing record for employee x is already present on date y and then switch to overwrite the entry rather than just insert it. Simply concantonating the employee number and date would be a rough and ready way of doing this.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 04:14 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: