I am looking to have a random number generate for an order id number for a website I am working on. It uses MySQL to store the orders with the order id being the primary key, so they cannot match. The order id is placed into an input field that will be used to insert into the database, so I cannot use MySQL to generate the number.
I have tried $numbers = range(1, 20);
shuffle($numbers);
But just get "Array" in the input field.
Right now, all I have is <?php echo(rand(1,1000)) ?>