psychohagis Posted March 26, 2007 Share Posted March 26, 2007 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 More sharing options...
The Little Guy Posted March 26, 2007 Share Posted March 26, 2007 $emsubject = 'BCMA - A new event has been posted; There is no closing quote like this: $emsubject = 'BCMA - A new event has been posted'; Link to comment https://forums.phpfreaks.com/topic/44410-solved-unexpected-t_string/#findComment-215650 Share on other sites More sharing options...
psychohagis Posted March 26, 2007 Author Share Posted March 26, 2007 oh thanks - i new it had to something obvious, i just couldnt spot it Link to comment https://forums.phpfreaks.com/topic/44410-solved-unexpected-t_string/#findComment-215656 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.