Parse error: parse error, unexpected T_STRING in /home/hr728/public_html/gigbookers/events/update2.php on line 47
line 47 = mail($email, $subject, $body);
thank you for anyone that can help
while($row = mysql_fetch_assoc( $result ))
{
$current_venue = $row['venue'];
$current_artist = $row['artist'];
$current_date = $row['date'];
$current_price = $row['price'];
$firstname = $row['firstname'];
$lastname = $row['lastname'];
$email = $row['email'];
$sender = "Gig Bookers";
$subject = "Event Cancelled";
$web = "Gig Bookers";
$msg = "Gig Bookers - $firstname $lastname Sorry to let you know that the event:
$current_artist playing at $current_venue on $current_date has been cancelled";
$body = "Sender: " . $sender . "\n\nWebsite: " . $web . "\n\nMessage:\n\n" . $msg;
if( $status == "Cancelled" ) {
mail($email, $subject, $body);
}
}
