Location: PHPKode > projects > Einkaufszettelgenerator > EZettel0.1/prodtype_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>Product - to db</title>

</head>
<body class="body1">
<?
include("menu.ini");

 $strsql = "delete from prod_type where typ_id='$_GET[typ_id]';";

 $result = mysql_query($strsql);  


echo "<TABLE border=1 align=center CELLSPACING=0 CELLPADDING=5i class=prod><TR class=table><TD>Тип продукта</td><td></TD><TR>";
   $strsql1 = "select typ_name, typ_id from prod_type where (user_id='$us');"; 
   $result1 = mysql_query($strsql1, $connection);
   $i=0;
    while ( $row = mysql_fetch_row($result1) )
       {
        $i+=1;

echo "<TR><TD>$row[0]</TD><td><a href=prodtype_del?typ_id=$row[1]>Удалить</a></td><TR>";
       }

?> 
</TABLE>    
<center><A HREF=input_prodtype.php>Ввести новый тип продукта</a>&nbsp;&nbsp;<A HREF=start.php>На первую страницу</A></center> 
Return current item: Einkaufszettelgenerator