Данный скрипт выводит статус гма, в сети или не в сети.
PHP:
<?php
$DBHost = "localhost"; // localhost or your IP
$DBUser = "root"; // Database user
$DBPassword = "ВАШ_ПАСС"; // Database password
$DBName = "pw"; // Database name
$online = mysql_query("SELECT * FROM point WHERE uid='32' AND zoneid='1'");
$o = mysql_fetch_row($online);
?>
<table width="160" border="0" cellspacing="0" cellpadding="0"><tr><td width="80">
<?
echo "<font color=#F7BA3F style=font-size:14px;>Yumiko</font>";
?>
</td>
<td width="80">
<?
if ($o[3] == 1)
echo "<img src=img/on.jpeg>";
else
echo "<img src=img/off.jpeg>";
?>
</td><tr>
</table>