===========
please help me I want my program to choose a site if it has not yet username then it will proceed it to ch_uname.php. Then if the login credentials have already username then it will be preceded to index_profile.php. Thank you in advance.
`if(mysql_num_rows($runcreds)> 0 ) //checking log in forms
{ if(mysql_num_rows($run_uname)>=1 ) //if username has already avalaible(proceed) { $_SESSION['Email_add']=$email; echo "<script>window.open('modules/index_profile.php','_self')</script>"; } if(mysql_num_rows($run_uname)<1)//choouse username if has not yet username { $_SESSION['Email_add']=$email; echo "<script>window.open('forms/ch_uname.php','_self')</script>"; //modules/index_profile.php } } else { echo "<script>alert('Admin details are incorrect!')</script>"; }
}
Aucun commentaire:
Enregistrer un commentaire