Odd and Even classes Function


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function theme_oddeven($row) {
  2. if ($row % 2) {
  3. return 'odd';
  4. } else {
  5. return 'even';
  6. }
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.