I have a column (named user_email) in a table called (event) in my database, This column has email addresses. I want to get all these email addresses and send one email for all of them. I tried to use 'for'loop but it only sends the email to one email only, I might be using for in a wrong way, any suggestion,
Part of my code
$select="SELECT * FROM event WHERE event_title='$title'";
$query_select= mysql_query($select);
$row = mysql_fetch_array($result);
$email_to=$row["user_email"];
for($x=0;$x<count($row['user_email']);$x++){
@mail($email_to,$email_subject,$email_message,$header);
}