Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

UUID

Guest
Apr 19, 2007 Apr 19, 2007
I wish the computer to make a UUID instead everytime someone registers rather than have an increment of 1. How is this accomplished in a lets say a register form. I made one from dreamweaver something simple. Here is the MySQL...

CREATE TABLE `uuid` (
`uuid` varchar(100) NOT NULL,
`firstName` varchar(50) NOT NULL,
`lastName` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
PRIMARY KEY (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

My form is in the attach code.

I am getting an error.

Thanks for the help.

-----------------------------
TOPICS
Server side applications
774
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 20, 2007 Apr 20, 2007
Does anyone know how to create a PHP UUID?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 20, 2007 Apr 20, 2007
Through much search on the web I found a way to get a UUID.

Underneath my <?php require_once('../Connections/conPHPSamples.php'); ?>
I have placed the following...
<?php $registerUIID = md5(uniqid(rand(), true)); ?>

And for my form which has a hidden uuid field the old code was as such...
<input type="hidden" name="uuid" value="<?php echo 'com_create_guid()';?>">

The new code...
<input type="hidden" name="uuid" value=" <?php echo $registerUIID; ?> ">

It seems to work, so if anyone sees anything wrong with this code please let me know.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2010 Jul 20, 2010
LATEST

Hi,

Could please let me know about UUID (Universally Unique Identifier) in detail.

which are the criteria will use to generate PDF file UUID.

It will generate for all the pdf file or it is an optional?

Thanks in advance,

Pavi

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines