Mam problem w takim kodzie i nie potrafię go rozwiązać
<?php
include("lib.php");
$player = check_user($secret_key, $db);
?>
<img src="templates/images/header.png">
<div id="menu">
<?php
include("templates/admin_header.php")
?>
</div>
<table>
<tr>
<th width="30%"><font color="white"><b>Nazwa</b></font></td>
<th width="40%"><font color="white"><b>Opis</b></font></td>
<th width="10%"><font color="white"><b>Typ</b></font></td>
<th width="5%"><font color="white"><b>Efektywność</b></font></td>
<th width="5%"><font color="white"><b>Koszt</b></font></td>
<th width="10%"><font color="white"><b>Akcja</b></font></td>
</tr>
<?php
$query = $db->execute("select `id`, `name`, `description`, `type`, `effectiveness`, `price` from `blueprint_items` order by `type`, `price`");
while($item = $query->fetchrow())
{
echo "<td>" . $item['name'] . "</td>\n"; echo "<td>" . $item['description'] . "</td>\n"; echo "<td>" . $item['type'] . "</td>\n"; echo "<td>" . $item['effectiveness'] . "</td>\n"; echo "<td>" . $item['price'] . "</td>\n"; echo "<td><a href=\"admin_items.php?delete=" . $item['id'] . "\">Usuń</a></td>\n"; }
if(isset($_GET['delete']) && $_GET['delete']=='' . $item['id'] .'') {
echo "<td><a href=\"admin_items.php?delete=" . $item['id'] . "\">Usuń</a></td>\n"; }
?>
PS na razie zamiast usówać chce wyświetlić link
Sorki, zapomniałem napisać, chodzi o to, że nie wyświetla tego usuń po kliknięciu w usuń
Ten post edytował furman12 30.12.2009, 20:15:27