How can i edit this code, so that each data will be in a table format, under a specified column for example Sname will be under shop name, pname will be under product name.thanks
$list = '';
$pplresult = mysql_query("SELECT * FROM repplac");
while($row = mysql_fetch_assoc($pplresult)){
$list .= $row['Sname'] .$row['Pname'] .$row['Psize'] .$row['Pcolour'] .$row['Pquantity'] .$row['Price']."\n";
}
//Send email
$to = $email;
$subject = "YOUR ORDER LIST FROM REACHEASY";
$headers = "From: donotreply@rapsody.co.uk";
$body = "$list";
mail($to,$subject,$body,$headers);
Thank you very much.
This could be a simple example for you.