Re: PHP/MySql noob falls at first hurdle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux