Lingo Posted July 19, 2013 Share Posted July 19, 2013 Hello fellow PHP Enthusiasts if you could help me with this I would apprieciate it very much. Error: Parse error: syntax error, unexpected 'id' (T_STRING), expecting ']' in C:\xampp\ Code: <?php if(!empty($_POST['id'])){ $id = $_POST['id']; $arf=getStatistics($id); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/280296-parse-error-syntax-error-unexpected-id-t_string-expecting-in-cxampp/ Share on other sites More sharing options...
requinix Posted July 19, 2013 Share Posted July 19, 2013 That code will not cause that error. Quote Link to comment https://forums.phpfreaks.com/topic/280296-parse-error-syntax-error-unexpected-id-t_string-expecting-in-cxampp/#findComment-1441323 Share on other sites More sharing options...
Lingo Posted July 19, 2013 Author Share Posted July 19, 2013 That is weird the error is there... I just got a new server so I am going to test there. Quote Link to comment https://forums.phpfreaks.com/topic/280296-parse-error-syntax-error-unexpected-id-t_string-expecting-in-cxampp/#findComment-1441326 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.