tags:

views:

28

answers:

1

How would I store the following code below its output in my Mysql table? How would the field be made?

md5(uniqid(microtime(),1))

example.

field CHAR(128) NOT NULL
+1  A: 

field CHAR(32) NOT NULL

The output of MD5() will always be 32 characters long

But of course you can save it in a binary format, in this case you should use:

field BINARY(16) NOT NULL

Waleed Eissa
Okay thanks for your help.
saddlyYES