Reply to Re: [PHP] PHP/MySql noob falls at first hurdle

Your name:

Reply:


Posted by Rory McKinley on 12/09/05 17:27

Paul Jinks wrote:
> Rory McKinley wrote:
>
>> Paul Jinks wrote:
>> <snip>
>>
>>> <?
>>> while($ouput_row = mysql_fetch_array($result)) {
>>> ?>
>>> <?=$output_row["projTitle"]?><br />
>>
>>
>> <snip>
>>
>>
>> Paul - is this the actual code that you are using? - because you have a
>> typo in your while statement - $ouput_row instead of $output_row - means
>> that when you try and echo $output_row it doesn't exist!
>>
>> Rory
>>
>>
> Oh no. I can't believe it. That was it. An idiotic typo.
<snip>

I wouldn't stress too much - happens to me all the time (sigh) and
(apparently) it happens to the best of us - but I am not qualified to
comment on the veracity of that statement :).

For future reference, during testing, you can set your error reporting
levels ( i think) in php.ini to output a notice regarding a variable
that does not exist - would have helped you spot the error! I normally
use the Zend debugger which does quite a good job of telling me that I
am an idiot :)

Rory

[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

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