<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Your Order</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
// Connect to server and select databse.
?>
<?php
$oid = "8";
$sql = "SELECT * FROM orders WHERE orderid=$oid";
$production=$row['products'];
$productss =
explode("+",
$production);
$quantity=$row['quantity'];
$quantities =
explode("+",
$quantity);
?>
<table width="212" height="56" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="108" height="19">Product</td>
<td width="19"> </td>
<td width="85" height="19">Quantity</td>
</tr>
<tr>
<td height="18"><?php
for($i =
0;
$i <
count($productss);
$i++
){ $sql = "SELECT * FROM products";
$prodid=$row['productid'];
$prodname=$row['productname'];
$prodprice=$row['price'];
if ($productss[$i]=$prodid){
} //end the if
for($i=
0;
$i <
count($prodid);
){ $totalprice+=$prodprice[$i]*$quantities[$i];
$i++;
}
}//ends the while
?></td>
<td bgcolor="#CCCCCC"></td>
<td><div align="right">
<?php
for($i =
0;
$i <
count($quantities);
$i++
){ }//end the for
?>
</div></td>
</tr>
<tr>
<td height="19">Total Price </td>
<td>$</td>
<td><?php
echo $totalprice; ?></td>
</tr>
</table>
<p>
<?php
}//end the first for loop
}
?>
</p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>