mysql_fetch_object and modulo %

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

 



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

[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