Jump to content

Boolean error --- unexpected T_VARIABLE


coffeecup

Recommended Posts

Boolean error

Boolean: $okay = TRUE;

Error received: Parse error: syntax error, unexpected T_VARIABLE

running PHP 5.2.11 on the machine that TM editor uses for a PHP reference.

running MAMP and its PHP Version is 5.2.11 also

Machine: Mac, OS 10.5.8, the machine is up to date as far as updates go as well as the TM editor.

 

$okay = TRUE ; is as basic as it can get.   

Does any one have some words of wisdom with this situation, as to why it would not fly.  :confused:

Thank you

Link to comment
https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/
Share on other sites

Boolean error

Boolean: $okay = TRUE;

Error received: Parse error: syntax error, unexpected T_VARIABLE

running PHP 5.2.11 on the machine that TM editor uses for a PHP reference.

running MAMP and its PHP Version is 5.2.11 also

Machine: Mac, OS 10.5.8, the machine is up to date as far as updates go as well as the TM editor.

 

$okay = TRUE ; is as basic as it can get.   

Does any one have some words of wisdom with this situation, as to why it would not fly.  :confused:

Thank you

 

OKay this is how the story went, this is the same construct, i have the Mac isolated from the net so i wrote this out here.

 

$okay = TRUE;
if (empty($_POST['e_mail'])) {
print '<p> please fill in the form field</p>';
$okay=$false
}

Well if you don't have the exact code its hard to tell you where the syntax error is... but in the code you just posted its on the line

$okay=$false

 

you are missing a semicolon after this line.

 

It would help to see the code ABOVE the line you first posted

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.