<?php
include("dbconnect.php");
//include("buildingsfunc.php");
$sql= "SELECT * FROM spielwelt where login = '$_SESSION[user_nickname]'" ;
if (!$res_id = mysql_query ($sql))
die('War wohl was falsch');
while ($ausgabe = mysql_fetch_array($res_id))
{
echo $ausgabe['id']." ".$ausgabe['login']." ".$ausgabe['b1'] ." ".$ausgabe['b2'] ."<br>";
}
?>
<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<table width="570" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
<tr background="http://localhost/gms/images/leiste2.jpg">
<td width="167"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $ausgabe['id']; ?><?php echo $ausgabe['login']; ?><?php echo $ausgabe['b1'] ?> </font></td>
<td width="136"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Kosten</font></div></td>
<td width="144"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Forschungsbonus</font></div></td>
<td width="110"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Optionen</font></div></td>
</tr>
</table>
<table width="570" border="0" cellpadding="1" cellspacing="1" bordercolor="#000000">
<!--DWLayoutTable-->
<tr>
<td width="145" rowspan="6" valign="top"><!--DWLayoutEmptyCell--> </td>
<td width="25" height="19" valign="top"><img src="http://localhost/gms/images/icon1.jpg" width="23" height="15"></td>
<td width="140" valign="top" bgcolor="#031d04"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
$steigung = $ausgabe['b1'] *3;
$wasser = $steigung * 42;
echo $wasser ;?>
</font></div></td>
<td width="150" valign="top" bgcolor="#053307"><!--DWLayoutEmptyCell--> </td>
<td width="115" valign="top" bgcolor="#19491a"><div align="center"></div></td>
</tr>
<tr>
<td height="19" valign="top"><img src="http://localhost/gms/images/icon2.jpg" width="23" height="15"></td>
<td valign="top" bgcolor="#031d04"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
$steigung = $ausgabe['b1'] *3;
$oel = $steigung * 28;
echo $oel ;?>
</font></div></td>
<td valign="top" bgcolor="#053307"><!--DWLayoutEmptyCell--> </td>
<td valign="top" bgcolor="#19491a"><div align="center">A</div></td>
</tr>
<tr>
<td height="19" valign="top"><img src="http://localhost/gms/images/icon3.jpg" width="23" height="15"></td>
<td valign="top" bgcolor="#031d04"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
$steigung = $ausgabe['b1'] *3;
$stahl = $steigung * 21;
echo $stahl ;?>
</font></div></td>
<td valign="top" bgcolor="#053307"><!--DWLayoutEmptyCell--> </td>
<td> </td>
</tr>
<tr>
<td height="19" valign="top"><img src="http://localhost/gms/images/icon4.jpg" width="23" height="15"></td>
<td valign="top" bgcolor="#031d04"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
$steigung = $ausgabe['b1'] *3;
$bewohner = $steigung * 3;
echo $bewohner ;?>
</font></div></td>
<td valign="top" bgcolor="#053307"><!--DWLayoutEmptyCell--> </td>
<td> </td>
</tr>
<tr>
<td height="19" valign="top"><img src="http://localhost/gms/images/icon5.jpg" width="23" height="15"></td>
<td valign="top" bgcolor="#031d04"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
$steigung = $ausgabe['b1'] *2;
$zeit = $steigung * 20;
echo $zeit ;?>
</font></div></td>
<td valign="top" bgcolor="#053307"><!--DWLayoutEmptyCell--> </td>
<td> </td>
</tr>
<tr>
<td height="21" valign="top"><img src="http://localhost/gms/images/icon5.jpg" width="23" height="15"></td>
<td valign="top" bgcolor="#031d04"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
$steigung = $ausgabe['b1'] *2;
$punkte = $steigung * 10;
echo $punkte ;?>
</font></div></td>
<td valign="top" bgcolor="#053307"><!--DWLayoutEmptyCell--> </td>
<td> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>