Location: PHPKode > projects > Simuland > world/location/changeland/2.inc
<?
connectdb();
//get info of user to check for level
$userms = mysql_query("SELECT * FROM usr WHERE usr='$user'");
$userm = mysql_fetch_array($userms);
$typem = mysql_query("SELECT * FROM buildingtype WHERE type='$btype'");
?>
<p>this section will list all hq types</p>
<p>hq's (type 2)<br>
  list hq types<br>
  in sub sections add a check for building above current level of player<br>
  to add, cost of building</p>
<table width="600" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
  <tr align="center"> 
    <td width="37">ID</td>
    <td width="251">Name</td>
    <td width="106">Level Required</td>
    <td width="96">Cost</td>
    <td width="96">Build?</td>
  </tr>
  <?
while ($type = mysql_fetch_array($typem)){
?> 
  <tr align="center"> 
    <td width="37"><?echo $type[0];?></td>
    <td width="251"><?echo $type[2];?></td>
    <td width="106"><?echo $type[6];?></td>
    <td width="96">$<?echo $type[7];?></td>
    <td width="96"><a href="/world/location/changeland2.php?&town=<?echo $town;?>&vert=<?echo $vert;?>&horz=<?echo $horz;?>&btype=<?echo $type[0];?>">Build 
      This</a></td>
  </tr>
  <?}?> 
</table>
Return current item: Simuland