View Single Post

  #3 (permalink)  
Old 02-26-2008
Toby A Inkster
 
Posts: n/a
Default Re: -> [PHP5]: Problem with mysql_fetch_object trying to convert toint???

Steve JORDI wrote:

> while( ($this->row = $this->db->getRow() ) != 0 )


This is implicitly trying to cast $this->row (which is an object) into an
integer, so that it can be compared to 0.

In this case, you probably want:

while ($this->row = $this->db->getRow())

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 27 days, 22:15.]

Bottled Water
http://tobyinkster.co.uk/blog/2008/02/18/bottled-water/
Reply With Quote