Here is what I am doing. As I pull from each row I am sending out the information. What I cannt figure out how to do is to get all this information in to $message to be printed out in an email. I have tried with arrays, and saving to a txt file to insert into. Any help would be greatly appreciated. Everything else works.
foreach ( $HTTP_GET_VARS as $key=>$value) {
if ($value == "User") {
$Customer = $key;
} else {
$result = mysql_db_query ("accent", "select PartName, PartNumb, PartValue from CustParts where PartID=$value and IDNumb=$key");
$Cust2 = @mysql_fetch_array($result) ;
$result = mysql_db_query ("accent", "select CustFullName, Percentage, CustNumb,
CustNumbID from Customers WHERE CustName=\"$Customer\"");
$row = mysql_fetch_array ($result);
if (!($Cust2["PartName"] == "None" )) {
echo "<tr><td width=\"126\" height=\"19\"><font size=\"2\">";
echo $Cust2["PartNumb"];
echo "</font></td>\n";
echo "<td width=\"308\" height=\"19\"><font size=\"2\">";
echo $Cust2["PartName"];
echo "</font></td>\n";