Three alternating css class using PHP

Posted July 29th, 2008 in CSS, Programming by Louie Miranda

My code for three alternating class:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div class=row_0>content here</div>
<div class=row_1>content here</div>
<div class=row_3>content here</div>
 
    <?php
    $i=0;
    foreach ($row as $data)
    {
    $i+1;
    $row_class = ($i % 3);
    //tpl class
    echo 'class=row_'.$row_class;
    }
    ?>

HTH

Cyberbayan, Online community

Posted July 23rd, 2008 in Social Networking by Louie Miranda

Cyberbayan, will be one of my pet projects. Come and help me build the online community.

http://www.cyberbayan.com

Thanks to Mr. Gardner for allowing me to use the name.

Hello world!

Posted July 22nd, 2008 in Personal by Louie Miranda

Transfered from axishift.blogspot.com (and *) to my own domain name. :)

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Checking and retrieving my old archives. :)

GPS Maps in the Philippines

Posted July 21st, 2008 in Technology by Louie Miranda

Great Global Positioning System (GPS) reference for maps, etc from http://www.waypoints.ph.

Now, I should buy my own GPS device. :)