Please tech gurus Help me !
Please help me urgent iam total newbie in MySQL and in PHP actually i want to auto generate user id if gender male selected in radio button
than user id will be m00001,m00002,m00003..... like this, if gender female selected in radio button than user id will be f00001,f00002,f00003..... lke this
any help please ! after google past two days i created below code it not working currectly after signup user id is not creating.
<?php
if ( $_POST['gender'] == 'Male' ) {
$result = mysql_query("SELECT max(LoginID) FROM users WHERE Gender='Male'");
{
$_REQUEST['login'] =='$result+1';
}
}
else if ( $_POST['gender'] == 'Female' ){
$result = mysql_query("SELECT max(LoginID) FROM users WHERE Gender='Female'");
{
$_REQUEST['login'] =='$result+1';
}
}
?>