Location: PHPKode > projects > World Tic Tac Toe > world_ttt/english_us/server.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>World Tic Tac Toe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.style1 {	font-family: Arial, Helvetica, sans-serif;
	font-size: medium;
.style2 {font-size: small}
.style3 {font-family: Arial, Helvetica, sans-serif}
.style6 {font-size: medium}
.style7 {color: #FF0000; font-size: medium;}
.style9 {font-size: small; font-weight: bold; }

require "../php/wTTTconfig.php";
$total_rooms = 0;

/* Connecting, selecting database */  
   $link = mysql_connect($host, $user, $pword)  
       or die("Could not connect : " . mysql_error());    
   mysql_select_db("wTTT") or die("Could not select database");

//Find total rooms created
$query = "SELECT `room`
FROM `play`";

$result = mysql_query($query); 

if (!$result) { 
  echo "Could not successfully run query ($sql) from DB: " . mysql_error(); 
while ($row = mysql_fetch_assoc($result)) { 
  $total_rooms++; //count total rooms
<div id="Layer1" style="position:absolute; width:539px; height:163px; z-index:1; left: 43px; top: 37px;">
  <p align="center"><span class="style1"><strong>World Tic Tac Toe Server </strong><span class="style2"><br>
    <img src="../images/world_loc.PNG" width="352" height="180" border="0">    <br>
  <table width="539" border="1">
      <td><div align="center" class="style3"><span class="style6"><span class="style9">Location Unknown</span></span></div></td>
      <td><div align="center" class="style3"><strong>1</strong></div></td>
      <td><div align="center" class="style3">Server Information Unavailable </div></td>
      <td><div align="center"><span class="style3">Status:</span></div></td>
      <td><div align="center"><span class="style3"><img src="../images/applet-okay.png" width="22" height="22"></span></div></td>
      <td><div align="center"><span class="style3"><span class="style7">The World TTT server 1 is live right now!</span></span></div></td>
      <td height="47"><div align="center" class="style3">
        <form action="../index.html" name="connect" target="_blank">
          <input type="submit" name="Submit" value="connect">
      <td><div align="center" class="style3"></div></td>
      <td><div align="center" class="style3"><?php echo $total_rooms;?> active rooms on this server</div></td>
  <p align="center"><span class="style1">    <span class="style2">(If any one wants to run World Tic Tac Toe on their server you are free to do so. Just go to the development page (/world_ttt/Dev/dev.html) and download the latest version)<br>
    Contact me if you choose to do so. (hide@address.com) </span></span></p>
Return current item: World Tic Tac Toe