Blackout Posted December 2, 2005 Report Share Posted December 2, 2005 Es nesaprotu kas te īsti nav pareizi? vnk izmet: Логин успешно создан a tālāk nekur $username = $_POST['username']; $email = $_POST['email']; $realname = $_POST['realname']; $password = $_POST['password']; $confirm = $_POST['confirm']; $sex = $_POST['sex']; $city = $_POST['city']; $valsts = $_POST['valsts']; $kakuznal = $_POST['kakuznal']; $bd = $_POST['bd']; $ircnick = $_POST['ircnick']; $icqnumber = $_POST['icqnumber']; $website = $_POST['web']; $games = $_POST['games']; $intereses = $_POST['intereses']; $aboutself = $_POST['aboutself']; $level = 1; $title = Пользователь; $registered = date('G:i, d-m-Y'); $last_ip = GetHostByName($REMOTE_ADDR); $user_query = mysql_query("SELECT * FROM user"); $num_users = mysql_num_rows( $user_query ); if ( $password == $confirm ) { $user_query = mysql_query("SELECT * FROM user WHERE email='".$email."'"); $num_users_email = mysql_num_rows( $user_query ); if ( $num_users_email == 0 ) { $user_query = mysql_query("SELECT * FROM user WHERE username='".$username."'"); $num_users_username = mysql_num_rows( $user_query ); if ( $num_users_username == 0 ) { $user_query = mysql_query("INSERT INTO user VALUES( NULL, '".$username."', '".$email."' '".$realname."', '".$password."', '".$sex."', '".$city."', '".$valsts."', '".$kakuznal."', '".$bd."', '".$ircnick."', '".$icqnumber."', '".$website."', '".$games."', '".$intereses."', '".$aboutself."', '".$level."', '".$title."', '".$registered."', '".$last_ip."', '".$registered."')"); echo 'Логин успешно создан'; } else { echo 'Логин занят'; } } else { echo("Почта уже занята."); } } else { echo("Паролы не совподает."); } Link to comment Share on other sites More sharing options...
v3rb0 Posted December 2, 2005 Report Share Posted December 2, 2005 a ko tu gribeji no vinja? Link to comment Share on other sites More sharing options...
php_Stopp Posted December 3, 2005 Report Share Posted December 3, 2005 nūū.. pēc skripta var noprast, ka tādā gadījumā reģistrācija noritējusi veiksmīgi UN viņš izprintē tavu Логин успешно создан (lai arī ko tas nenozīmētu /nesaprotu rus/) Link to comment Share on other sites More sharing options...
Analgiins Posted December 6, 2005 Report Share Posted December 6, 2005 Логин успешно создан - logins veiksmiigi izveidots, dooh! Link to comment Share on other sites More sharing options...
rpr Posted December 6, 2005 Report Share Posted December 6, 2005 kautkaads vaajpraat sarakstiits. 1.) neticu, ka ar slaavu burtiem ir nodefineeta konstatne 2.) paswordus plaintekstaa glabaat nav veseliigi 3.) manupraat gjiniaalas rindas - $user_query = mysql_query("SELECT * FROM user"); $num_users = mysql_num_rows( $user_query ); Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 6, 2005 Report Share Posted December 6, 2005 Blackout--> nu kods tachu straadaa ..... ko pajautaaji to arii atbildeeja.... tikai tev no koda truukst vismaz 50% ;) Link to comment Share on other sites More sharing options...
Recommended Posts