Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
User table correction August 08, 2011 12:16PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: User table correction August 08, 2011 02:15PM |
Registered: 12 years ago Posts: 5 Rating: 0 |
Re: User table correction August 08, 2011 03:47PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: User table correction August 10, 2011 09:44AM |
Registered: 15 years ago Posts: 9 Rating: 0 |
Re: User table correction August 10, 2011 05:01PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: User table correction August 23, 2011 02:05PM |
Registered: 13 years ago Posts: 2 Rating: 0 |
Re: User table correction August 24, 2011 06:58AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Language: PHP//catch variables from form if($password1==$password2){ // we are sure the person has entered his password correctly twice, so now he should know his password and we and jim can be sure he has entered the one he intended //check if the user exist by doing a sql query $sql=... select from db where username=';$username';..... $num_rows=mysql_num_rows($sql); if($num_rows >1) { echo " This user exists ...try again... "; // and add a link back to registration form } else { // the user does not exist, his password match so do a insert query } } else{ //the passwords do not match echo "The password do not match... try again...."; }
Anonymous User
Re: User table correction September 05, 2011 11:52PM |
Rating: 0 |
Re: User table correction September 06, 2011 06:35AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: User table correction September 06, 2011 05:40PM |
Registered: 12 years ago Posts: 25 Rating: 0 |
Re: User table correction September 15, 2011 01:59PM |
Registered: 12 years ago Posts: 21 Rating: 0 |