Friday, February 17, 2012

Alternate table row by $X rows per color

Alternate row color by $g rows


$x=10;
$g = 5;

$color = array('RED','BLUE');
$kaler = 0;
for($i=0; $i echo "$i .... ";
if(!($i%$g)){
$kaler = ($kaler == 0) ? 1 : 0;
}

echo $color[$kaler] ."
";
}

Posted via email from Posterous

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...