Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

столкнулся с проблемой mysql_fetch_assoc()

Featured Replies

Posted

вообщем начал делать мониторинг у себя на сайте и тут появляется ошибка

Warning: mysql_fetch_assoc(): 17 is not a valid MySQL result resource in /home/login/data/www/raknet.ru/engine/mysql.php on line 92

собственно сами строки мониторинга

if(!defined('RAKNETUCP')) die("Hacking attempt!");
$array = $db->super_query("SELECT * FROM `players` WHERE `Admin`>'0'");
$admin = array( 
	'1' => '<span style="color: green; text-shadow: green 1px 1px 10px;"><strong>Модератор 1 лвл</strong></span>',
	'2' => '<span style="color: green; text-shadow: green 1px 1px 10px;"><strong>Модератор 2 лвл</strong></span>',
	'3' => '<strong><span style="color: #009999; text-shadow: #00CCCC 0px 0px 10px;">Администратор сервера</span></strong>',
	'4' => '<span style="color: #CC0000; text-shadow: #CC0000 1px 1px 10px;"><strong>Руководство проекта</strong></span>',
);
$online = array(
	'0' => '<span style="color: black; text-shadow: black 1px 1px 10px;"><strong><b>OFFLINE</b></strong></span>',
	'1' => '<span style="color: green; text-shadow: green 1px 1px 10px;"><strong><b>ONLINE</b></strong></span>',
);	
$history = "";
while($array = $db->get_row())
{
	$url = "
	<td style='padding:5px 30px;color:#777777;background:#fff;border-bottom:1px solid #ddd; width:0%;'>
		<b>
			<font color='#777777'>
				<a href='?".PREFIX."=user&players=1&name=".$array[Name]."'>$info_account</a>
			</font>
		</b>
	</td>";
	$history = "
	<td style='padding:5px;color:#777777;background:#fff;'>".$this->GetName($array[TABLE_USERS_NAME])."</td>
	<td style='padding:5px;color:#777777;background:#fff;'>".$admin[$array[Admin]]."</td>
	<td style='padding:5px;color:#777777;background:#fff;'>".$online[$array[Online]]."</td>
	$url
	</tr>
	<tr>";
}
$list_return = "
	<h3 class='maintitle'>Администрация</h3>
	<table class='ipb_table ipsMemberList'>
		<tr class='header'>
			<th scope='col' style='width: 3%'>&nbsp;</th>
			<th scope='col' style='width: 20%'>Имя пользователя</th>
			<th scope='col' style='width: 15%'>Группа</th>
			<th scope='col' style='width: 25%'>Статус</th>
			<th scope='col' style='width: 12%'>&nbsp;</th>
		</tr>
		<tr>
		".$history."
		</tr>
	</table>
	";
return $list_return;

вот строки mysql.php on line 92

	function get_row($query_id = '')
	{
		if ($query_id == '') $query_id = $this->query_id;

		return mysql_fetch_assoc($query_id); /* Строка 92 */
	}

в чем проблема может быть ?

Edited by CRAZy_Str

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.