|
Архив - только для чтения |
Модератор форума: andycrowz |
Форум Корзина форума Корзина Помогите Исправить ошибку |
Помогите Исправить ошибку |
Помогите Исправить ошибку купил сайт а там такая ошибка
<?php include 'config.php'; $connect = mysql_connect($host,$user,$pass) or die('Нет подключения к базе данных'); mysql_select_db ($cdb, $connect) or die(mysql_error()); $sql_character_online_count = mysql_query("SELECT COUNT(*) FROM `characters` WHERE `online` = 2", $connect) or die(mysql_error()); $character_online_count = mysql_result($sql_character_online_count, 0); mysql_select_db ($rdb, $connect) or die(mysql_error()); $sql_uptime = mysql_query ("SELECT max(`starttime`), `uptime` FROM `uptime` WHERE `realmid` = 2"); $uptime = time() - mysql_result($sql_uptime, 0); $sec = $uptime%60; $uptime = intval ($uptime/60); $min = $uptime%60; $uptime = intval ($uptime/60); $hour = $uptime%24; $uptime = intval($uptime/24); $day = $uptime; if ($day != 0) $day = $day." д"; else $day = ""; if ($hour != 0) $hour = $hour." ч"; else $hour = ""; if ($min != 0) $min = $min." м"; else $min = ""; $sql_all_time = mysql_query ("SELECT min(`starttime`) FROM `uptime` WHERE `realmid` = 2"); $result_all_time = time() - mysql_result($sql_all_time, 0); $secs = $result_all_time%60; $all_time = intval ($result_all_time/60); $mins = $all_time%60; $all_time = intval ($all_time/60); $hours = $all_time%24; $all_time = intval($all_time/24); $days = $all_time; if ($days != 0) $days = $days." д"; else $days = ""; if ($hours != 0) $hours = $hours." ч"; else $hours = ""; if ($mins != 0) $mins = $mins." м"; else $mins = ""; mysql_select_db ($cdb, $connect) or die(mysql_error()); $sql_ap = mysql_query("SELECT `value` FROM `worldstates` WHERE `entry` = 20001", $connect) or die(mysql_error()); $result_ap = mysql_fetch_array($sql_ap); $accrual_ap = date("H:i:s d.m.Y", $result_ap['value']); $sql_day = mysql_query("SELECT `value` FROM `worldstates` WHERE `entry` = 20006", $connect) or die(mysql_error()); $result_day = mysql_fetch_array($sql_day); $reset_day = date("H:i:s d.m.Y", $result_day['value']); $sql_week = mysql_query("SELECT `value` FROM `worldstates` WHERE `entry` = 20002", $connect) or die(mysql_error()); $result_week = mysql_fetch_array($sql_week); $reset_week = date("H:i:s d.m.Y", $result_week['value']); $sql_month = mysql_query("SELECT `value` FROM `worldstates` WHERE `entry` = 20007", $connect) or die(mysql_error()); $result_month = mysql_fetch_array($sql_month); $reset_month = date("H:i:s d.m.Y", $result_month['value']); echo " <table> <tr> <td class='col-1'>Название реалма :</td> <td>WoW Pandaria</td> </tr> <tr> <td class='col-1'>Версия сервера :</td> <td>WoW 3.3.5a</td> </tr> <tr> <td class='col-1'>Рейты сервера :</td> <td>X - 12</td> </tr> <tr> <td class='col-1'>Онлайн :</td> <td>$character_online_count</td> </tr> <tr> <td class='col-1'>UPTime :</td> <td>$day $hour $min $sec с</td> </tr> <tr> <td class='col-1'>Начисление АП :</td> <td>$accrual_ap</td> </tr> </table> "; mysql_close($connect); ?> Сайт для Trinity |
wowfrozen, не в том разделе) помощь ищеш)
Добавлено (01.07.2014, 12:35)
Сообщение # 2 написано 01.07.2014 в 12:35
|
| |||
| |||