Bronza
Новичок
Дата регистрации:
28.02.2014 19:11:12
Сообщений: 5
Warning: mysqli::close() [http://soulgames.local/ru-ru/mysqli.close]: Couldn't fetch mysqli in Z:\...\registration.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at Z:\...registration.php:27) in Z:\...\registration.php on line 33
24 if (!$bad) {
25 $mysgli = @new mysqli("localhost", "MyLogin", "MyPass", "data-local" );
26 if (mysqli_connect_errno()) {
27 echo "Подключение невозможно:".mysqli_connect_error();
28 }
29 $password = md5($password);
30 $mysgli->query("INSERT INTO users (`login`, `email`, `password`) VALUES ('$login', '$email', '$password' ) " );
31 $mysgli->close();
32 $_SESSION['registration_success'] = 1;
33 header("Location: index.php" );
34 }
Подскажите, пожалуйста, что нужно исправить?