php print from database after registartion

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: php print from database after registartion

Post by seandisanti » Mon Feb 25, 2013 10:24 am

It depends on how you've decided to interact with your database. If you're using PDO, then the id would be stored in PDO::lastInsertId, with mysqli, if you're using objects it would be in mysqli::insert_id procedural it would be returned with a call to mysqli_insert_id()

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests