Share this post

Link to post

Share on other sites

Go to line 67 in your source code and look at that line and the line before it. One or the other line will have a simple syntax error in it involving: failure to terminate single or double quotes, failure to terminate parentheses or currly braces, too many parentheses or curly braces, other simple syntax errors etc.

Share this post

Link to post

Share on other sites

Ah...didn't notice...but you have a ton of errors surrounding the use of single quotes around your variables. Check those.

[!--quoteo(post=386647:date=Jun 21 2006, 06:52 PM:name=Adamb10)--][div class=\'quotetop\']QUOTE(Adamb10 @ Jun 21 2006, 06:52 PM) [snapback]386647[/snapback][/div][div class=\'quotemain\'][!--quotec--]I looked over the code twice, the only thing that catches my eye is the value= part and I tried changing that but I still got the error.[/quote]

Share this post

Link to post

Share on other sites

You should pop in and out of php mode instead of outputting large amounts of html between single quotes and double quotes. Makes it way less confusing[code]<?php //do php stuff?><a href="somelink">don't need to worry about single quotes ' or double quotes " either</a>more html<?php //back to php?>[/code]

Share this post

Link to post

Share on other sites

I got the code to run thanks to starting and stopping PHP like previously mentioned. Now I got another problem(not a parse error :)).

The whole purpose of this file is to let the admin edit/delete comments. When the admin clicks edit to edit a topic, the url goes to ?action=comments?cmd=edit&id=15. Unfortuantely, when I do click edit, it goes to a blank page instead of a few text boxes. The code for this is right here...

Share this post

Link to post

Share on other sites

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Any reason this wont work?[/quote]Nope.[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Unfortuantely, when I do click edit, it goes to a blank page instead of a few text boxes[/quote]Can we see the form in which you click this second edit?

Share this post

Link to post

Share on other sites

None of that code is relevent considering the first line says...[code]if(!isset($cmd))[/code]Assuming, that is, that $cmd = $_GET['cmd']

Really... the problem with writting all your code in one big file like so is the logic becomes pretty un-userfriendly pretty quickl;y. The logic is quite difficult to follow when you cant see the whole picture.