ERRORE: L'Username deve contenere minimo 8 Caratteri!";} if (strlen($Password) < 9) {$error=$error."
ERRORE: La Password deve contenere minimo 9 Caratteri!";} if (strlen($Email) < 1) {$error=$error."
ERRORE: L'E-Mail deve contenere minimo 1 Carattere!";} if (strlen($UserName) < 1) {$error=$error."
ERRORE: Il Nome Reale deve contenere minimo 1 Carattere!";} if (strlen($IDCard) != 7) {$error=$error."
ERRORE: Il Codice Cancellazione PG deve contenere 7 Numeri!";} if (strlen($Answ) < 1) {$error=$error."
ERRORE: La risposta segreta deve contenere 1 Carattere!";} if (strlen($error) > 0){ echo "ERRORE:
Indietro$error";exit; }else{ require_once("conn.php"); mysql_select_db("account"); $exec="select * from account where Login='$UserID'"; $result=mysql_query($exec); $rs=mysql_fetch_object($result); if($rs){ echo"ERRORE!
Indietro"; exit; }else{ $exec="insert into account (Login,Password,Real_name,Social_id,Email,Phone1,Phone2,Address,Question1,Answer1) values('$UserID',password('$Password'),'$UserName','$IDCard','$Email','$Mobile','$Telephone','$Addr','$Ques','$Answ')"; mysql_query("set names big5 "); mysql_query("set CHARACTER big5 "); mysql_query($exec); //echo mysql_error(); //echo $exec; //$exec="insert into player.safebox(account_id,size,password) values((select id from account.account where login='$UserID') ,1,'000')"; //mysql_query($exec); //echo mysql_error(); //echo "
".$exec; ?> L'account è stato registrato ed inserito correttamente nel Database.Buon divertimento su DreamSLongju dallo staff!
