er ikke god til PHP så ved ikke hvor jeg skal sætte det ind, koden er her
<?php
session_start();
include("connect.php");
$db_hent = mysql_query("select * from user_brugere where id = '$_SESSION[id]'");
$hent = mysql_fetch_array($db_hent);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>**** - Et tekstbaseret browser spil</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="center">
<div id="top"></div>
<div style="margin-left:1px; margin-right:1px;">
<div id="menu">
<?php include("menu2.php"); ?>
</div>
<div id="indhold">
<table width="" border="0" align="left">
<tr>
<td width="100"><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td width="50%"><div align="left">Metal mine<br />
</div></td>
<td width="50%"><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Guld mine<br /> Level 1 38 Guld i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Olieplatforme<br /> Level 1 38 Olie i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 4 304 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 5 608 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 6 1094 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 7 1959 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 8 3544 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 9 6380 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 10 18374 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 11 29399 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 12 47039 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 13 75263 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 14 120422 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 15 120422 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 16 168590 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 17 219167 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 18 263000 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 19 289300 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td><div align="left"><img src="billeder/Intet Billedeny.png" alt="" /></div></td>
<td><div align="left">Metal mine<br /> Level 20 303450 Metal i timen</div></td>
<td><div align="left"></div></td>
</tr>
</table>
</div>
</div>
<div id="bund">© 2008 ****.dk <?php include("bund.php"); ?></div>
</div>
</body>
</html>
og det der skal sættes ind er her
<?php
$level = $_GET['level'];
if($_SESSION['level'] == "" || $_SESSION['level']=="1" || $level == "1")
{
echo('Level 1 38 Metal i timen - <a href="bygninger.php?level=2">Opgrader!</a>');
}
else(if($_SESSION['level']== "2" || $level == "2")
{
echo('Level 2 76 Metal i timen - <a href="bygninger.php?level=1">Nedriv!</a>');
}
?>
og det skal være sikkeret så man ikke kan snyde
Håber i igen vil hjælpe
Indlæg senest redigeret d. 19.03.2008 11:38 af Bruger #13458