Parse error at last line of page code [Solved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
paratge
Forum Newbie
Posts: 2
Joined: Tue Nov 15, 2005 9:18 am

Parse error at last line of page code [Solved]

Post 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
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
paratge
Forum Newbie
Posts: 2
Joined: Tue Nov 15, 2005 9:18 am

Thank's a lot !

Post 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.
Post Reply