Re: [PHP] even or not

2001-11-13 Thread Morten Winkler Jørgensen
OSv> How can is check with php wether a number is even or not? What i want is OSv> that in a while loop the background color of a cell changes! Try echo (($i++ % 2) == 0) ? "#FF" : "#00FF00"; First it performs an integerdivision and checks if the remainder is 0. If that is the case it p

[PHP] even or not

2001-11-13 Thread Oosten, Sjoerd van
Hello, How can is check with php wether a number is even or not? What i want is that in a while loop the background color of a cell changes! Thanks, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minerv