Reply to Re: [PHP] Script stuck on final ?>

Your name:

Reply:


Posted by Richard Lynch on 10/04/35 11:07

Alp wrote:
> Why would a php script get stuck at the ver last line of code in php/mysql
> combination? I'm getting a parse error at the very last line.

It may help you (now and in the future) to remember that PHP is just a
program, that reads your script, line by line, and then tries to convert
what you typed into an "action" for it to take.

If it's complaining on the last line, then, most likely, it expecting
something *MORE* from you, based on what you already have typed.

So you're missing the ending part of something, like an ending " mark, or
an ending ' or an ending } or an ending ) or an ending ] or something of
that nature.

It's also a good idea to be FANATIC about your alignment of beginning and
ending { } markers -- There are religious arguments about where exactly
they should be placed, but pick whatever seems most reasonable to you and
stick to it, and ALWAYS line them up the same with CONSISTENT indentation.

Otherwise, you'll spend the rest of your programming life looking for
missing }

You may also want to get a good color-coding editor. A quick Google for
"PHP Editors" should turn up tons of them.

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация