What is the difference between order_id and order_number?
If the order_id is the unique identifier, what is the order_number for?
Pablo
The order_id is the auto_increment field in the table "jos_vm_orders" that counts from 1 to xxxx. It identifies the order.
The order_number identifies the order as well, but it is a random md5 hash. That allows you to display a link to an order without an easy-to-guess ID.
ciao, Soeren
so, how to create a random md5 hash?
Please let me know asap, TQ.
Al chirng
I'm trying to read values from an Oscommerce orders table and insert them into a VM table. But, how do I create the order_number with SQL?
Hi,
use the MySQL function MD5.
http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html#function_md5
Just use some random values like the order time and ID to create different random md5 hashs.
ciao, Soeren