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
https://forums.phpfreaks.com/topic/100074-solved-automatic-id/
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
https://forums.phpfreaks.com/topic/100074-solved-automatic-id/#findComment-511720
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.