Register page checking with the database if there is an existing user if there is, restrict the user from logging in

[http://programmerguru.com/android-tutorial/android-multicast-push-notifications-using-gcm/

Hi, i am a student and is still quite new to PHP, MySql i am in need of some assistance i am currently doing a project on the [GCM] (Google cloud messenging)
i have a problem with this code as when i want to register it allows me to register the same username or email and it is a big flaw in the project. the error i am having is in the file {viewusers.php} is there any way i can register and it will check the database if there is any existing user with the same username if there is. the app will restrict the user from registering. and an extra function to check the database to see if there is a match to the user and it will display which area the user is residing.


Source: mysql

Leave a Reply