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); } ?> 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. 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. 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
Archived
This topic is now archived and is closed to further replies.