<!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 = "9";
$sql = "SELECT * FROM orders WHERE orderid=$oid";
$production=$row['products'];
$productss =
explode("+",
$production);
$quantity=$row['quantity'];
echo "<BR> <font color = 'red' >this is the first quantity "+
$quantity;
$quantities =
explode("+",
$quantity);
?>
<table width="212" height="79" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="117">Product</td>
<td width="23"> </td>
<td width="72">Quantity</td>
</tr>
<tr>
<td height="19"><?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){
echo "this is the quantity ".
$quantities[i
];
} //end the if
}//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>Total Price </td>
<td>$</td>
<td> </td>
</tr>
</table>
<p>
<?php
}//end the first for loop
}
?>
</p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>