I have made some progress by putting into an array first
but it don't seem to be working correctly
it mails items but i have to put $item[1] $item[2] $item[3]
and so on it won't automatically increase for variable $item[$i]
clarification: this what ianm trying to accomplish
item1 price1
item2 price2
item3 price3
heres what I have:
$result23 = mysql_query("SELECT title FROM orders where orderid='$orderNumber'",$db);
$i =1;
while ($myrowz = @mysql_fetch_array($result23)){
$titlez[$i]= $myrowz[title];
$i++;
}
$subject = "Order Confirmation;
for ($i=1;$i<=count($titlez[$i]);$i++) {$message .= $titlez[1] . "" . $titlez[2] . "" . $titlez[3] . "" . $titlez[4] . "\n";}
mail($email_address, $subject, $message, "From: <>\nX-Mailer: PHP/" . phpversion());