Unexpected T_VARIABLE

Parse error: syntax error, unexpected T_VARIABLE in C:\devEnvironment\htdocs\invoicing\mailman.php on line 7

[php]<?php
$headers = array(
‘From: debug@domain.com’,
‘Content-Type: text/html’,
‘MIME-Version: 1.0’);
$message = ‘

Test


$sub = ‘Invoice’ //LINE 7
$to = $custemail
mail($to, $sub, $message, $headers);[/php]

Right now, I am just at debug, which explains the lame content.

Also, sorry about being a 1 poster. I can assure you I am 100% spambot free.
Any help would be greatly appreciated. I have just looked over this for the millionth time, and I can’t seem to satisfy PHP.

Hi there,

You need to terminate your lines with a semicolon “;”. Put a semicolon at the end of your “message”, “sub”, and “to” declarations and you should be fine.

Cheers!

:-[ Wow… I cannot believe I missed those. I guess the semicolons have struck again on me.

Thanks for the help. For some reason I disregarded semicolons for the declaration…

Sponsor our Newsletter | Privacy Policy | Terms of Service