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

<body class="speise">


$strsql_del="delete from menu where speise_id='$_GET[speise_id]' and tag='$_GET[tag]'";
$result_del = mysql_query($strsql_del, $connection);

echo "<TABLE BORDER=1 cellpadding=3 cellspacing=3  class=menu align=center>";

  $strsql_5 = "select distinct tag from menu order by tag ;"; 
 $result_5 = mysql_query($strsql_5, $connection);
  while ( $row_5 = mysql_fetch_row($result_5) )
 echo "<TR><TD valign=top><B>";
echo "<P><BR>";
if ($row_5[0] =='1'){ echo "Понедельник";}
if ($row_5[0] =='2') { echo "Вторник";}   
if ($row_5[0] =='3'){ echo "Среда";}   
if ($row_5[0] =='4'){ echo "Четверг";}   
if ($row_5[0] =='5'){ echo "Пятница";}   
if ($row_5[0] =='6'){ echo "Суббота";}   
if ($row_5[0] =='7'){ echo "Воскресенье";}   

echo "</td><td>";

$strsql_6 = "select p.speise_name, p.speise_id from  speise p,  menu t where ( (t.tag='$row_5[0]')&&(p.speise_id=t.speise_id) and (t.user_id='$us'));";
  $result_6 = mysql_query($strsql_6, $connection);
 while ( $row_6 = mysql_fetch_row($result_6) )
 echo "<a href=speise.php?speise_id=$row_6[1] target=blank>$row_6[0]</a> <a href=speise_aus_menu.php?speise_id=$row_6[1]&tag=$row_5[0]><font size=-2>удалить из меню</font></a> <BR> ";
echo "<P></TD></TR>";
<center><A HREF=input_menu.php>Выбрать меню</a>&nbsp;&nbsp;<A HREF=start.php>На первую страницу</a></center> 

Return current item: Einkaufszettelgenerator