You are here: Re: Parse error: parse error, unexpected $end « PHP Programming Language « IT news, forums, messages
Re: Parse error: parse error, unexpected $end

Posted by Steve on 11/05/05 12:48

In article <436c4362$0$7057$dbd4f001@news.wanadoo.nl>,
jrf_no_spam@jokeaday.net (Juliette) wrote:


> You are missing a closing bracket in the add2tbl.php file.
> Based on the layout, my guess would be that it should come after:
> > if ($user == FALSE) {
> > die("There has been an error in adding you to the
Database.
> Please EMail the admin.");
>
> Even so, could just as easily go elsewhere as your indenting is
> pretty inconsistent (I didn't study the code).
>
> Grz, J.
>

I'm quite sure this has been debated many times before, but I have a
thing in my head about the way neophyte web programmers lay out their
code.

In the olden days ;-) we used to do it like this,

if (statement);
{
if (statement);
{
do something;
}
else
{
do something else;
}
}
else

etc etc etc

Most sensible PFE's will support this, but you can see straight away if
you have unbalanced parenthesis.

Now, because I'm an old git, and I've always done it that way, I'll
continue, but what is the reasoning behind hiding a curly bracket at the
end of a statement ?

</2d>




- Steve

 

Navigation:

[Reply to this 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

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