<style type="text/css"> <!-- body { background-color: transparent; } .online { font-size: 19px; color: #339966; } --> </style> <? $host = "хост"; $user = "пользователь1"; $pass = "пароль"; $db = "база"; $db = mysql_connect($host, $user, $pass) or die(mysql_error()); mysql_select_db($db,$db); $result = mysql_query ("SELECT COUNT(*) as total FROM `char` WHERE online = '1'",$db) or die(mysql_error()); //Запрос надо вставить свой Этот для игры Ragnarok $myrow = mysql_fetch_array($result); $usersonline = $myrow["total"]; // $server_max = "500"; $percent = $server_max/100; $online = $usersonline/$percent; // echo " <table width='310' height='76' border='0' cellspacing='0' cellpadding='0'> <td width='310' height='76' background='bg.png'> <table height='10' width='10' border='0' cellspacing='0' cellpadding='0' style='margin-top: -1px; margin-left: 30px; margin-right: 13px;'> <td><font color=#FF9721>$usersonline</font></td></table> <table height='12' border='0' cellspacing='0' cellpadding='0' style='margin-top: -17px; margin-left: 65px; margin-right: 13px;'> <td background='feel.png' height='12' width='$online'></td><td></td></table> </td><td width='1'></td> </table><font color=#727272>Сервер загружен на <font color=#EA0000>$online</font>%</font></b>"; ?>