This code for the body of email that i want to send...so i want to loop for the name so i will display like this name abu,name ali,name rajesh
$z = oci_parse($conn, "SELECT name FROM usr where usr_id=:num1");
oci_bind_by_name($z, ":num1",$INIT);
oci_execute($z);
$row = oci_fetch_row($z);
$MERC_HAND_USR_ID_name[]=$row[0];
}
$body='Dear Helpdesk Manager
We would like to inform that a new report has been made by.
Name: '.foreach($MERC_HAND_USR_ID_name as $key => $value)
{
$value;
}.'
date: '. $date.'
time: '. $time.'
Thank You,
- Helpdesk ';
it is possible for me to do like this or there is other way?