Re: [PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Robert Cummings
On Wed, 2008-11-19 at 10:12 -0500, Andrew Ballard wrote: > On Wed, Nov 19, 2008 at 9:32 AM, Craige Leeder <[EMAIL PROTECTED]> wrote: > > Alain Roger wrote: > >> > >> Hi, > >> > >> how can i do to test if the row number (record number) sent by > >> mysql_fetch_object is odd or even ? > >> i mean tha

Re: [PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 9:32 AM, Craige Leeder <[EMAIL PROTECTED]> wrote: > Alain Roger wrote: >> >> Hi, >> >> how can i do to test if the row number (record number) sent by >> mysql_fetch_object is odd or even ? >> i mean that: >> while ($row = mysql_fetch_object($result)) >>{ >> if($row%2

Re: [PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Craige Leeder
Alain Roger wrote: Hi, how can i do to test if the row number (record number) sent by mysql_fetch_object is odd or even ? i mean that: while ($row = mysql_fetch_object($result)) { if($row%2 == 1) { ... } } the $row doesn't return a value... like 1, 2 or 6 for exampl

[PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Alain Roger
Hi, how can i do to test if the row number (record number) sent by mysql_fetch_object is odd or even ? i mean that: while ($row = mysql_fetch_object($result)) { if($row%2 == 1) { ... } } the $row doesn't return a value... like 1, 2 or 6 for example... thx. F