Location: PHPKode > projects > Einkaufszettelgenerator > EZettel0.1/speise_del.php
<?
session_start();
$us= $HTTP_SESSION_VARS['uid'];
//echo "user=$us<br>"; 
?>
<html>
<LINK REL="stylesheet" TYPE="text/css" HREF="menu.css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Menu -Speiselist</title>

</head>
<body class="speise">

<?
include("menu.ini");

$strsql_del="delete from speise where speise_id='$_GET[speise_id]'";
$result_del = mysql_query($strsql_del, $connection);
echo "<TABLE BORDER=O CELLSPACING=0 CELLPADDING=5 class=table>";
   $strsql1 = "select p.speise_name, p.speise_id, t.type_name  from speise p, speise_type t where (p.speise_type=t.type_id and p.user_id='$us' and t.user_id='$us')  ORDER BY p.speise_type;";
   $result1 = mysql_query($strsql1, $connection);
   $i=0;
    while ( $row = mysql_fetch_row($result1) )
       {
        $i+=1;
echo "<TR><TD><font><a href=speise.php?speise_id=$row[1] target=_blank>$row[0]</a></TD><TD>$row[2]</TD><td><a href=speise_edit.php?speise_id=$row[1] target=_blank>Редактировать</a></td><td><a href=speise_del.php?speise_id=$row[1] >Удалить</a></td><TR>";
 
      }

echo "</TABLE> ";
?>  
 
<A HREF=start.php>На первую страницу</a>

Return current item: Einkaufszettelgenerator