Result
Новичок
Warning: mysql_result() expects at least 2 parameters, 1 given in Z:\home\test1.ru\www\station.php on line 136
PHP:
<?php
for ($i=2; $i<10; $i++)
{
$query_coord = mysql_query("SELECT * FROM char_user_online WHERE location=1, XX=$i, YY=1",$db);
$real_user_coord = mysql_result($query_coord);
if (true==$real_user_coord) {
echo (" <td width=\"60\" style=\"cursor:pointer\" onMouseOver=\"over_m ('menuXX"); echo ($i);echo ("YY1')\" onMouseOut=\"out_m('menuXX "); echo ($i);echo ("YY1')\"><div id=\"userXX"); echo ($i); echo ("YY1\"><div style='margin-left:14px;'>$user</div><img src=\"smyles/899112599.gif\" border=\"0\" /><BR /></div></td> ") ;
}
else {
echo ("<td width=\"60\" style=\"cursor:pointer\" onMouseOver=\"over_m('walkmanXX"); echo ($i);echo ("YY1')\" onMouseOut=\"out_m('walkmanXX"); echo ($i);echo ("YY1')\"><div id=\"walkmanXX"); echo ($i);echo ("YY1\" style=\"display: none\"><form id=\"send\" method=\"get\" action=\"station.php\"><input type=\"hidden\" name=\"YY\" value=\"1\"/>смайлик<BR /><input type=\"hidden\" name=\"XX\" value=\"$i\"/><input type=\"submit\" value=\"go\" /></div></form></td>");
}
}
?>