You are here: Re: What is wrong? « All PHP « IT news, forums, messages
Re: What is wrong?

Posted by Oli Filth on 01/07/06 16:22

Oli Filth said the following on 07/01/2006 14:21:
> m6s said the following on 07/01/2006 07:48:
>
>> function getPrice( $sbl ){
>> if ( $sbl == $this->$paper[symbol] ){
>
> ^
> ^
> This is not valid syntax. You need quotes to access an array member,
> i.e. $paper["symbol"].
>

Always, always, always, always have error reporting turned on when
you're developing code. There are countless questions on these NGs which
wouldn't need to be asked if the poster had just had error reporting
turned on.

Make sure your php.ini file contains:

error_reporting = E_ALL
display_errors = On


--
Oli

 

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

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