please the line breaks not working in the email sent
$pplresult = mysql_query("SELECT * FROM repplac");
$list = $row['Sname'] .$row['Pname'] .$row['Psize'] .$row['Pcolour'] .$row['Pquantity'] .$row['Price'];
while($row = mysql_fetch_assoc($pplresult)){
$list .= $row['Sname'] .$row['Pname'] .$row['Psize'] .$row['Pcolour'] .$row['Pquantity'] .$row['Price'] ."<br/>";}
//echo $list; }
//die();
// sending email
$to = $email;
$subject = "YOUR ORDER LIST FROM RE";
$headers = "From: donotreply@re.co.uk";
$body = "$list";
//send emil
mail($to,$subject,$body,$headers);
$transfer = mysql_query("INSERT INTO wishlist SELECT * FROM repplac")or die(mysql_error());
$deletetable = mysql_query("DELETE FROM repplac")or die(mysql_error());
redirect_to('youraccount.php');