Jump to content

damien275x

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

damien275x's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks, but also as users could access the page at exactly the same time, they may have the same ID for their order Can I + something to the timestamp? Reduces the odds to the point where I think i'd be OK with it
  2. I have a system that, as it is dealing with EFTPOS and is quite old, requires numbers in raw format, with no decimals For example, 200 will be $2.00, 6050 is $60.50. Now it returns the values with no decimal. What is the correct way I can manipulate variables to echo with the decimal places to the end user? Thankyou in advance!
  3. Hi, I am looking to use PHP to create a unique order number. I can't be bothered linking to a database etc, I am thinking creating a string of 10 characters based on current time down to the second plus a random number, or something based on the users IP address? Reduce the chances/odds someone has the exact same number. It's for a small system. Can anyone help me? I want it to be about 8-10 numbers. like 20120403xxxx where xxxx is the random numbers based on IP or a random digits. Thanks everyone
  4. Hello PHP Freaks, I am using a basic payment frame system, and it requires me to pass in a GMT time in this format, in a hidden form. "YYYYMMDDHHMMSS" I have found a lot of examples in PHP on how to format the above tag, but what would be the easiest way to generate it as is? To make things a little more complicated, there are different users in different GMT times, and based on the state they select it needs to + or - hours from the current time to get the GMT time. The formulas to calculate the results are as follows, just after the best approach in PHP to calculate: State #1: CURRENT_TIME + 10 HOURS = GMT TIME (echo as YYYYMMDDHHMMSS) and assign to $GMT_TIMESTAMP State #2: CURRENT TIME + 9.5 HOURS = GMT TIME (echo as YYYYMMDDHHMMSS) and assign to $GMT_TIMESTAMP What would be the best way to tackle this ? At the moment I have select boxes where the user can pick the state, then click SUBMIT. Thankyou in advance, D
×
×
  • 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.