Jump to content

Recommended Posts

I am having a few problems with the mechanics of how to do a timing script and wanted a point in the right direction.

 

I need a timing and price script for a pool hall and I need this in like 24 hours as the system we were using just blew up lol its was about 20 year old though, green screen and everything.

 

We have 10 tables and we want the new script to run like the old one, we press start and the stopwatch starts counting up and displays time gone and current table cost.  Press stop and it stops, you then have two further options, Print which would print a single line with the table number, start/finish time, total time it was used for and the final cost of the table. then a reset button to start the process all over again.

 

The printing option is not really a needed option but it would be a handy thing to have to help with our accounts.

 

So where do I start, that is the big question?

 

Layout would be like so;

 

1. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

2. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

3. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

4. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

5. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

6. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

7. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

8. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

9. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

10. Total Time - 00:00:00 - Total Price - £00.00p Start Time - 00:00:00 End Time

 

1. Start - Stop - Reset - Print

2. Start - Stop - Reset - Print

3. Start - Stop - Reset - Print

4. Start - Stop - Reset - Print

5. Start - Stop - Reset - Print

6. Start - Stop - Reset - Print

7. Start - Stop - Reset - Print

8. Start - Stop - Reset - Print

9. Start - Stop - Reset - Print

10. Start - Stop - Reset - Print

 

We have a touch screen computer all ready with a XAMPP server running on it so we can run this with PHP and mySQL if needed or we could just run this from a secure page on our website as the machine has internet access too.

Link to comment
https://forums.phpfreaks.com/topic/152447-timing-script/
Share on other sites

First before u begin a timing script.

Remember php runs on the server.

So yer options for updating the time is by refresh or by loading the screen.

 

if u need an actual count down/up timer u will have to go and use javascript/flash orsimilar which runs in the browser.

 

If refreshing the page, u will also have to consider that this may disrupt the input of text boxes, Search boxes, etc.

 

if thats ok, than yes it can be done in php

 

Link to comment
https://forums.phpfreaks.com/topic/152447-timing-script/#findComment-800698
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.