Witam

Piszę pewną stronę i mam w niej taki kod do łączenia się z bazą:
  1. $zabepieczenie = new ZapisOdczyt();
  2. $_POST = $zabepieczenie->Zapis($_POST);
  3. $dane = new mysqli($db['host'],$db['login'],$db['haslo'],$db['baza']);
  4. $dane->set_charset('utf8');
  5. $sql = "select * from Uzytkownik where UZY_Login = '{$_POST['login']}';";
  6. $dane_zapytanie = $dane->query($sql);
  7. $dane_pobrane = $dane_zapytanie->fetch_assoc();
  8. $haslo_md5 = md5($_POST['pass']);
  9. //echo $haslo_md5;
  10. if($haslo_md5 == $dane_pobrane['UZY_Haslo']) {
  11. //$info = "Przenosimy";
  12. $_SESSION['zalogowany'] = 'tak';
  13. $_SESSION['login'] = $_POST['login'];
  14. header('Location: panel.php');
  15. }
  16. else {
  17. $info = "Podane dane są nieprawidłowe";
  18. }


Mniejsza z tym o jego treść. Problem jest w tym, że na jednym komputerze wszystko działa a na drugim sypie takimi błędami:
Cytat
Warning: mysqli::mysqli() [mysqli.mysqli]: Premature end of data (mysqlnd_wireprotocol.c:554) in F:\xampp\htdocs\zespolowy\admin\index.php on line 9

Warning: mysqli::mysqli() [mysqli.mysqli]: OK packet 1 bytes shorter than expected in F:\xampp\htdocs\zespolowy\admin\index.php on line 9

Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2000): mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file in F:\xampp\htdocs\zespolowy\admin\index.php on line 9

Warning: mysqli::set_charset() [mysqli.set-charset]: Couldn't fetch mysqli in F:\xampp\htdocs\zespolowy\admin\index.php on line 10

Warning: mysqli::query() [mysqli.query]: Couldn't fetch mysqli in F:\xampp\htdocs\zespolowy\admin\index.php on line 12

Fatal error: Call to a member function fetch_assoc() on a non-object in F:\xampp\htdocs\zespolowy\admin\index.php on line 13

Dane do łączenia się poprawne, bo tak jak mówię, na innych kompach wszystko działa, tylko na moim jest problem. Z innymi projektami nie mam problemu.