Page 1 of 1

Parse error at last line of page code [Solved]

Posted: Tue Nov 15, 2005 9:29 am
by paratge
Hi,

I'm using Dreamweaver MX and I got a problem with 2 pages including repeated zones. I added to this pages new dynamic text from MySql request, and in test mode I've got a parse error on last line of the code. With others pages including repeated zones too, i've no problem.

So I opened these pages with WebExpert and saw that Dreamweaver added comments in dynamic navigation bar which were breaking php code. I removed them so the code was clear. But in test mode nothing changes, i have always a parse error at last line.

Has somebody an idea to help me ?

Thank's a lot for your time

Posted: Tue Nov 15, 2005 9:33 am
by shiznatix
a parse error on the very last line almost always means you are missing a } somewhere. check it out and i bet thats the problem.

Posted: Tue Nov 15, 2005 9:33 am
by twigletmac
Often this is due to a missing } on a loop or if statement. Have you checked that all the braces match up?

Mac

Thank's a lot !

Posted: Tue Nov 15, 2005 9:48 am
by paratge
It's great to be helped when something's wrong.

I putted a brace at last line and in test a new error gives me the line where brace was missing.

Thank's a lot.