You are here: Re: PHP Error on Password Check (SQL Database) « PHP Programming Language « IT news, forums, messages
Re: PHP Error on Password Check (SQL Database)

Posted by mypetprogrammer on 06/05/07 09:11

On Jun 4, 12:59 pm, Schraalhans Keukenmeester
<Schraalh...@the.spamtrapexample.nl> wrote:
> At Mon, 04 Jun 2007 05:09:03 -0700, Sheik Ishmael let h(is|er) monkeys
> type:
>
> > Really Strange
>
> > The code is exactly what is reproduced in the book "Essential PHP for
> > Web Developers".
>
> > --SI
>
> I don't recall : ever being syntactically correct following an if () or
> else. But even if it ever was, it isn't anymore. The online source is
> wrong. Besides your copy here isn't a 100% copy of the one in the page you
> referred to, you put a ; where the code has a :
>
> It probably works if you remove all the : following if/elses, but I'd have
> my doubts about the dubious quality of the work altogether and find
> something better.
>
> All code was written when php3 was standard. We're at 5 now, you will find
> many version 4 scripts and hosts, but no php3 ones anymore. (Now someone
> probably shows me a link to a host using php3 or even older....)
>
> www.php.netis a good starting point.
>
> --
> Schraalhans Keukenmeester - schraalh...@the.Spamtrapexample.nl
> [Remove the lowercase part of Spamtrap to send me a message]
>
> "strcmp('apples','oranges') < 0"

Actually, the colon thing is perfectly acceptable syntax.

if (condition):

else:

endif;

Is valid PHP code. It also works for switch, while, for, foreach, etc.

http://www.phpbuilder.com/manual/en/control-structures.alternative-syntax.php

"was never valid", indeed.

~A!

 

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

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