Location: PHPKode > projects > Einkaufszettelgenerator > EZettel0.1/markt_to_db.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 = "insert into markt (markt_name, user_id) VALUES ('$_POST[markt_name]','$us');";

 $result = mysql_query($strsql);  


echo "<TABLE border=1 align=center CELLSPACING=0 CELLPADDING=5i class=prod><TR class=table><TD>Markt</TD><TR>";
   $strsql1 = "select markt_name from markt 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><TR>";
       }

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