witam wyskakuje mi blad:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/epixcs/public_html/new/index.php on line 72
http://epix-cs.xaa.pl/new/index.php
co moge zrobić aby działo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <META NAME="Description" content="opis strony"> <meta name="Keywords" content="tagi"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body> <div id="content"> <? require_once('config.php'); ?></font> <div id="header"> </div> <div id="pasek_menu"> <div class="a_menu"> <ul id="menu"> </ul> </div> </div> <div id="tresc"> <div align="center"> <br /> <table class="servers"> <tr> </tr> <?php require "class.hlsocket.php"; require_once('config.php'); $query = mysql_query( "SELECT * FROM `server`" ); $data = array(); while ( $row = mysql_fetch_assoc( $query ) ) { $ip = explode( ":", $row['ip'] ); $status = new HLSocket( $ip[0], $ip[1] ); $array = $status->details(); if ( empty( $array['hostname'] ) ) { continue; } $array["type"] = $row["type"]; $array["ip"] = $row["ip"]; $data[] = $array; } foreach ( $data as $server ): ?> <tr> </tr> <?php endforeach; mysql_close(); ?> </table> </div> <div id="box_right"> </div> </div> <div id="stopka"> </div> </div> <br> </div> </body> </body>