Jump to content

[SOLVED] unexpected T_STRING


psychohagis

Recommended Posts

Im sure this is something obvious but I can't see it.

 

I have used the folowing bit of code before but I just changed the message and it doesnt work and gives me a "parse error: unexpected T_STRING" error.

 

While ($row = mysql_fetch_array($result)) 
{

$email = $row['email'];

$emto = $email;
$emsubject = 'BCMA - A new event has been posted;
$emmessage = 'Details of the event - "' . $event . '" on ' . $sdate . ' have just been posted.  Please click on the adress below to view this, and other events: <br> http://www.MYSITE.org.uk/events.php';
$emfrom = '[email protected]';
$emheader= 'From:' . $emfrom;
mail($emto, $emsubject, $emmessage, $emheader);

}

Link to comment
https://forums.phpfreaks.com/topic/44410-solved-unexpected-t_string/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.