[tutorial] strip table with PHP

Table comes in various styles, and the striped style is the most popular among them, normally when you make the table with pure HTML’s tags you could write the style down with CSS for each row. The idea is how to make the row’s background change dynamically according to the row. the odd rows has a different background color with the even one. Because we gonna make it from PHP code.
to make table above, first we have to define the color you’ll use. for example you will make a gray-white strip. so for gray we will use #EEEEEE color’s code and for white one, we just need to write ‘white’ or you can use code ‘#FFFFFF’. As we both know that table has both odd and even rows, so the plan is to make the odd rows has white background and the even one has the gray background. well, how do we know which one is even and which one is odd???? good question because we all know that PHP has modulus arithmetic operator ‘%’ .
the next step is Continue reading

Advertisements

[book] [review] PERAHU KERTAS (PAPER BOAT)

Yaay,, this is my first book review. I love books, I have a lot of them stock up in my house. but rather than review all of them I will review my favorite books I’ve read recently instead.

PERAHU KERTAS (PAPER BOAT)

Once upon a time there was a girl name Kugy who used to float a paper boat from the every river she met around her house. she believes that she is a Neptune’s agent and she has a secret purposes and mission from Neptune by being born on this earth. And the only way to communicate to her boss (which is Neptune – she thinks) she start to float every paper boat she made, to inform the great Neptune what she finds and she plans. And as we all know -and Kugy knows-  The Great Neptune never giving a reply, but she still believes. And she is weird yet cute and a talented story teller, I must say. ^^
Continue reading