Jump to content

[SOLVED] automatic 'id'


stuart7398

Recommended Posts

hi.

i require my users to send data to me, once their data is verified by a human i then give them the second part of the form to complete their profile.

 

how would i assign them an automatic 'id' for them to use in order for me to keep their data details together for when they complete the second part of the form?

 

any help / tutorials would be grateful.

 

thanks,

Stuart.

Link to comment
Share on other sites

i helped to do some search in google, this is pasted from one of the poster.

 

so, i assume you hv set the id column to auto increment..

 

$query = mysql_query("SELECT MAX(id) FROM `table`");
$results = mysql_fetch_array($query);
$cur_auto_id = $results['MAX(id)'] + 1;

 

more detail on http://codingforums.com/archive/index.php?t-94437.html

do search google!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.