mattclements Posted August 21, 2009 Share Posted August 21, 2009 Hey all I am getting the following error: Parse error: syntax error, unexpected T_DOUBLE_ARROW with this code - seems like im missing something stupid! <?php if( (date("d") => 08) && (date("d") < 15) ) { echo "selected"; }; ?> Matt Quote Link to comment Share on other sites More sharing options...
Garethp Posted August 21, 2009 Share Posted August 21, 2009 Shouldn't => be ==? I don't know much about =>, but it seems like it could be that. Also, ; does not go after } Quote Link to comment Share on other sites More sharing options...
mattclements Posted August 21, 2009 Author Share Posted August 21, 2009 Sorted it - Should be >= rather than => => is to do with setting arrays. Matt Quote Link to comment 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.