View Single Post
Old 20.07.2007, 03:35   #2
ZeniMax
Архивный участник
 
Join Date: May 2006
Posts: 209
Default

Lil "fix":
Quote:
Originally Posted by madar View Post
Code:
<?PHP
$conn = mssql_connect('localhost','omg','meng');
$db_selected = mssql_select_db('lin2world', $conn);

$result = mssql_query("SELECT npc_db_name,alive FROM npc_boss");

echo "<table width=\"500\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\">";

while ($rezult = mssql_fetch_object($result) )
                {
                $rezult->npc_db_name = ucwords(str_replace("_"," ",$rezult->npc_db_name));
                $rezult->alive = str_replace("1","Alive",$rezult->alive);
                $rezult->alive = str_replace("0","Dead",$rezult->alive);
                echo ('<tr>
                <td width="50%" height="20">'.$rezult->npc_db_name.'</td>
                <td width="50%" height="20" align="center">'.$rezult->alive.'<br>
                </tr>');
                }
echo "</table>";
?>
:P.
If you want you can also add loc in a map.
ZeniMax is offline