mondialw98 Posted February 4, 2021 Share Posted February 4, 2021 Hello, Do you guys have any idea how to start an Automatic Order Number System in PHP? I have an service Website, where you can purchase something, and i want after the redirect to "Success.php" to generate an order number, to be shown to the buyer and saved in Date Base for me. Any solutions helps. I´m beginner so don´t mind Quote Link to comment https://forums.phpfreaks.com/topic/312095-generate-random-order-number/ Share on other sites More sharing options...
requinix Posted February 4, 2021 Share Posted February 4, 2021 Don't make a random number. Use a real number. Even better, don't restrict yourself to a literal number but allow it to be a string. You can do a lot more with a string, such as create an order "number" built from the customer ID and date. But if you want advice that's actually good then you'll have to describe your system and the nature of these order numbers. Quote Link to comment https://forums.phpfreaks.com/topic/312095-generate-random-order-number/#findComment-1584227 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.