user4fun Posted May 22, 2007 Share Posted May 22, 2007 <!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 More sharing options...
astralaaron Posted May 22, 2007 Share Posted May 22, 2007 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title>ODOC new sites submittal</title></head><body>$email = $row['column_name']; Link to comment Share on other sites More sharing options...
user4fun Posted May 23, 2007 Author Share Posted May 23, 2007 How about the select statment. I want it to take the entire table, no WHERE stipulations Link to comment Share on other sites More sharing options...
user4fun Posted May 23, 2007 Author Share Posted May 23, 2007 I got it , thank you Link to comment Share on other sites More sharing options...
vijay Posted May 23, 2007 Share Posted May 23, 2007 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 More sharing options...
user4fun Posted May 23, 2007 Author Share Posted May 23, 2007 Thanks for the infowhat ever you said is over my head,any examples, codes, tutorials you can give me would be greatSorry, still learningthank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.