please i am trying to structure a list inato table to be sent as an email
ow 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);
    
  
please i am trying to structure a list inato table to be sent as an email
===

ow 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);
    
  