I have a variable ($email_body) which has the body of an email in it. just before this variable i am running this PHP:
$sql3="SELECT * from billing_pdf_archive where sequence = '".$result["sequence"]."' ";
$rs3=mysql_query($sql3,$conn);
while($result3=mysql_fetch_array($rs3))
{
$invoices_list_data[] = $result3["invoice_number"];
}
$invoices_list = implode('<br>',$invoices_list_data);
i want to make it list all the rows found (invoice_number column) in the $email_body variable
so i have tried:
$email_body = $invoices_list;
but its only displaying one row
how can i do this?