require 'cmsadmin/connect.php';
$sql_select = 'SELECT * FROM ordersait';
$result = mysql_query($sql_select);
$row = mysql_fetch_array($result);
do
{
printf("" .$row['email5'] . "");
}
while($row = mysql_fetch_array($result));
printf("" .$row['email5'] . "");
$to = $row['email5'];
printf("" .$row['email5'] . "");
$to[$i++] = $row['email5'];