<?php $serwer = 'localhost'; $uzytkownik = 'root'; $haslo_uzytkownika = ''; $nazwa_bazy = 'gra'; ?>
... wynik jest taki:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10048) in C:\Documents and Settings\user\Pulpit\Gra\konfiguracja\serwer.php on line 7
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Documents and Settings\user\Pulpit\Gra\konfiguracja\serwer.php on line 8
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NIE) in C:\Documents and Settings\user\Pulpit\Gra\konfiguracja\serwer.php on line 9
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Documents and Settings\user\Pulpit\Gra\konfiguracja\serwer.php on line 9
///////
Ten problem występuje tylko na localhoscie, na vpsie jest w 100% w porządku.
2 mankament to to, że te błądy nie wyskakują cały czas... tylko co pare / naście sekund.