latinum_1982
Erfahrenes Mitglied
PHP:
<?php
include 'dbc.php';
page_protect();
//-----ZUM AUSLESEN DER LETZTEN EINTARG BZW AUFTRAGNUMMER-----
mysql_select_db("katmedia");
$SQL_statement=sprintf("SELECT * FROM bestellung WHERE user_id = %d ORDER BY datum DESC LIMIT 0,1", $_SESSION['user_id']);
$resultset=mysql_query($SQL_statement);
while($data=mysql_fetch_array($resultset)) {
//mysql_select_db("katmedia");
//$SQL_statement=sprintf("UPDATE bestellung SET versand = '".$versand."' WHERE user_id = %d ORDER BY datum DESC LIMIT 0,1" $_SESSION['user_id']);
mysql_query("UPDATE `bestellung`
SET `versand` = '{$data['versand']}'
WHERE `user_id` = '{$_SESSION['user_id']}'
LIMIT 1") or die("Fehler beim Update: ".mysql_error());
?>
<html>
<head>
<title>Kunden Konto</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script language="JavaScript" type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript">
function changeLanguage()
{
document.forms['f_sprachwechsel'].location.value = window.location.pathname + window.location.search;
document.forms['f_sprachwechsel'].submit();
}
</script>
<link href="styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Stil1 {color: #FF0000}
a {
text-align: right;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="main">
<tr>
<td colspan="3"><a href="myaccount.php"><img src="img/banner.gif" width="906" height="176" align="left"></a></td>
</tr>
<tr>
<td width="206" valign="top">
<?php
if (isset($_SESSION['user_id'])) {?>
<?php }
?><?php include_once("navi.php"); ?>
<p> </p>
<p> </p>
<p> </p></td>
<td width="1229" valign="top"><p>
<br>
</p>
<div align="center" width="100%">
<p><img width="539" height="84" alt="" src="img/login_ok_de.gif"/><br/>
</p>
<p>
</p>
<form action="" id="versand">
<table width="489" border="0" align="center">
<tr>
<td width="186" height="20"><div align="right"><strong>Auftragsnummer :</strong></div></td>
<td width="293"><strong><?php echo $data['auftragsnummer'] ?><?php } ?></strong></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
</tr>
<tr>
<td height="6"><div align="right"><strong>Versand Art :</strong></div></td>
<td rowspan="2"><p>
<label><input type="radio" id="versand" name="versand" value="viaups">Versand via UPS</label><br>
<label><input type="radio" id="versand" name="versand" value="selbsabholung">Selbstabholung</label></p></td>
</tr>
<tr>
<td height="7"> </td>
</tr>
<tr>
<td height="17"> </td>
<td> <div align="right"><input type="submit" value="Weiter" /></div></td>
</tr>
</table></form>
<p>
</p>
<p></a></p>
<p> </p>
</div>
<p> </p>
<p> </p>
<p> </p>
<p align="right"> </p></td>
<td width="171" valign="top"><?php include_once("rechts.php"); ?></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</body>
</html>