Dane bazy danych:
Adres: mysql.csrv.pl
Port: 3306
User: csrv_57925
Baza danych: csrv_57925
Błędy występujące podczas łączenia:
Cytat
Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/obaji/public_html/bany.php on line 19
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'obaji'@'localhost' (using password: NO) in /home/obaji/public_html/bany.php on line 20
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/obaji/public_html/bany.php on line 20
Warning: mysql_query() [function.mysql-query]: Access denied for user 'obaji'@'localhost' (using password: NO) in /home/obaji/public_html/bany.php on line 22
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/obaji/public_html/bany.php on line 22
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/obaji/public_html/bany.php on line 34
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'obaji'@'localhost' (using password: NO) in /home/obaji/public_html/bany.php on line 20
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/obaji/public_html/bany.php on line 20
Warning: mysql_query() [function.mysql-query]: Access denied for user 'obaji'@'localhost' (using password: NO) in /home/obaji/public_html/bany.php on line 22
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/obaji/public_html/bany.php on line 22
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/obaji/public_html/bany.php on line 34
Skrypt odpowiedzialny za ,,łączenie"
<? ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Banned Players of server</title> </head> <body> <?php // change these things $server = "mysql.csrv.pl:3306"; $dbuser = "csrv_57925"; $dbpass = "*********"; $dbname = "csrv_57925"; echo "<tr style=\"font-weight:bold\"> <td>Name</td> <td>Reason</td> <td>Admin/Mod</td> <td>Time of ban</td> <td>Time of unban</td> </tr>"; if($col == "#eeeeee"){ $col = "#ffffff"; }else{ $col = "#eeeeee"; } if($row['temptime'] == "0"){ }else{ } } echo"</table>" ?> </body></html>