You are here: Re: Very Weird Behavior « PHP Programming Language « IT news, forums, messages
Re: Very Weird Behavior

Posted by Alan Little on 11/28/05 18:36

Carved in mystic runes upon the very living rock, the last words of Sean
of comp.lang.php make plain:

> If you checked the php error log it would have printed out something
> like:
>
> [27-Nov-2005 16:04:12] PHP Parse error: syntax error, unexpected T_IF
> in etc......

Assuming error logging is on, which it isn't in this case, but error
reporting is, and there was no error.

> if ($Phone) $CompanyBlock.= "Tel: $Phone\n".
> if ($Fax) $CompanyBlock.= "Fax: $Fax\n".
> if ($Email1) $CompanyBlock.= "Email: $Email1\n".
>
> Take this section of code, your concatenating IF statements like
> strings so of course it's not going to work.

I understand that. As stated in my original post, the code was initially
a single block of concatenation; I added the if's, and forgot to change
the appropriate dots to semicolons.

> You should start by going to http://www.php.net/manual/en/

Gosh, a whole new world of enlightenment I hadn't seen before!

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/

 

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

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