Jump to content

Select


user4fun

Recommended Posts

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title>ODOC new sites submittal</title></head><body>

$result = mysql_query("SELECT `email` FROM `websites` WHERE, i want it to select all the records); while($row = mysql_fetch_array($result))  {	   $to = $email;   $from = "Online Department Of eCommerce. US --DETAILS--";   $title = "Online Competition --|END|--";$body = <<< emailbodyTHE MESSAGEemailbody;   $success = mail($to,$from,$title,$body,			  "From:$from\r\nReply-To:  ");

how can $email hold the value it took form the rows selected?

Link to comment
Share on other sites

Hi..If you r sending the same email to all then do one thing first make comma seperated email address from recordset and then assign it to 'to' of mail functions..suippose this'll help you..Regards,Vijay

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...