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]
|