Jump to content

php print from database after registartion


cipher143

Recommended Posts

i have created a registration form page with id,name,col,branch,etc

Coming to the database ID is primary and auto increment,

im trying to print the generated value of from the database after the registration is done.

 

For example:

"You have Successfully registered with us n your id is xxxxxx"

 

Please someone helpme out with this

after writing the data into database you can use any of these functions to get last inserted id.

 

//mysql extension
mysql_insert_id();
//mysqli extension
mysqli_insert_id();
//pdo
PDO::lastInsertId();
//ref
//http://php.net/manual/en/function.mysql-insert-id.php

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.