020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.
Top » PHP » misc

Tabular data alternative ladder styling
[php misc]

 

for pure css method see: this link

for jQuery alt row styling adding (e.g. for browser, which cannot read modern css): see here

//css powered alternate row ladder-like styling
//apply to td tag, if you want to use top/bottom border
//apply to tr tag if you want to use background only
$class = (floor($rows/2) == ($rows/2) ? 'css_odd_row' : 'css_even_row'

//usage - apply to rows (tr)
<table>
   <tr class="<?php echo $class ?>"><td> text goes here </td></tr>
</table>


//usage - apply to cells (td)
<table>
   <tr><td class="<?php echo $class ?>"> text goes here </td></tr>
</table>