3raser Posted January 12, 2011 Share Posted January 12, 2011 I've looked it, and I guess it's right in front of me but I don't see it. Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/a8079066/public_html/view.php on line 24 echo "<b>Name:</b> ". $query['name'] ."<br/><b>Description:</b> ". $query['description'] ."<hr><a href='/mods/". $query['id'] .".zip'><h2>[DOWNLOAD]</h2></a><hr>"; Quote Link to comment https://forums.phpfreaks.com/topic/224139-one-line-error/ Share on other sites More sharing options...
trq Posted January 12, 2011 Share Posted January 12, 2011 There is nothing wrong with that line. What are the few lines before? Quote Link to comment https://forums.phpfreaks.com/topic/224139-one-line-error/#findComment-1158177 Share on other sites More sharing options...
jcbones Posted January 12, 2011 Share Posted January 12, 2011 When PHP parser gives you a line, always look at that line, and the lines above it. For instance, if you missed a semi-colon on line 23, then it will see the string on 24 as Un-expected. Quote Link to comment https://forums.phpfreaks.com/topic/224139-one-line-error/#findComment-1158198 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.