coffeecup Posted November 30, 2009 Share Posted November 30, 2009 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. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/ Share on other sites More sharing options...
mikesta707 Posted November 30, 2009 Share Posted November 30, 2009 you have a syntax error above that line. You probably missed a semi colon or something. post the code above that line Quote Link to comment https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/#findComment-967844 Share on other sites More sharing options...
MadTechie Posted November 30, 2009 Share Posted November 30, 2009 showing the code kinda helps a little! Quote Link to comment https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/#findComment-967846 Share on other sites More sharing options...
coffeecup Posted November 30, 2009 Author Share Posted November 30, 2009 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. 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 } Quote Link to comment https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/#findComment-967871 Share on other sites More sharing options...
mikesta707 Posted November 30, 2009 Share Posted November 30, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/#findComment-967875 Share on other sites More sharing options...
coffeecup Posted November 30, 2009 Author Share Posted November 30, 2009 I found the answer i had a comment // without space , beside the opening <?php //note to self Thank you every one for taking the time to assist. Quote Link to comment https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/#findComment-967904 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.