|
function EditOnLoad()
{
global $conn, $where;
$rs = db_query("select customerid from
orders where " . $where, $conn);
$data = db_fetch_numarray($rs);
$CustomerID = $data[0];
echo "Orders
placed by " .$CustomerID. "<br>";
$rsOrders = db_query("select * from orders
where customerid='".$CustomerID."'",
$conn);
while($data=db_fetch_array($rsOrders))
{
echo "<a target=_blank href=orders_edit.php?editid=".$data["OrderID"].
">". $data["OrderID"]."</a>
".$data["OrderDate"]."<br>";
}
} |