while($row2 = mysql_fetch_array($result2))
{
$email_message .= '<tr>';
$id= $row2['id'];
$value= $row2['format( a.total_value, 2 )'];
$email= $row2['email'];
$email_message .='<td>'."$id".'</td>';
$email_message .='<td>'."$value".'</td>';
$email_message .='<td>'."$email".'</td>';
$email_message .= '</tr>';
}
i want to send email to xx@gmail.com(id=4) with first five row info and send email to ss@yy.com(id=13) with last row info.. After fetching above table from db how to do code for above using php. please help me out.