A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 9: Plug-in 61 - Add User To DB

This plug-in saves a user's details in a MySQL database. If the data table used doesn't already exist it even creates it for you, so that there's minimum setup required.

The Figure shows this plug-in in action with a user being added twice to the database, the duplicate checking ensuring that the second insertion is ignored.