Is it possible to have this code changed easily to make the output run horizontally instead of vertically. example of current output to email below code
I'm not sure what you mean by "horizontaly". Do you mean one long line? Provide an example of what you want to get. And we don't know where and how $selections variable is set.
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////// //email selections to all users $sql = "SELECT email_address FROM Users"; $result = mysql_query($sql); while ($myrow = mysql_fetch_array($result)) {
$email = $myrow['email_address']; $subject = "Mark's Footy Tipping Competition"; $message = "Hi, Round $Round is now closed. Selections were: $selections Thanks! Mark This is an automated response, please do not reply!"; mail($email, $subject, $message, "From: Mark<$fromemailaddress>\nX-Mailer: PHP/" . phpversion());
} //////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////
outputs like this
Hi,
Round 10 is now closed. Selections were:
Glen Gosnay - Game 1 Essendon Glen Gosnay - Game 2 Hawthorn Glen Gosnay - Game 3 West Coast Glen Gosnay - Game 4 Kangaroos
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php