Most of the websites use this alternating color to tables which will make the user readability of table content. We can use any of the colors you want.
I am writing php code which will print the data present in the mysql table in a alternating color format.
<?php
//Database Connection inputs
$host=”localhost”; // Host name
$username=””; // Mysql username
$password=””; // Mysql password
$database=”mydb”; // Database name
$table=”mytable”; // Table name
// Connect to server and select databse
mysql_connect(“$host”, “$username”, “$password”)or die(“cannot connect”);
mysql_select_db(“$mydb”)or die(“cannot select DB”);
$sql=”SELECT * FROM $mytable”;
$result=mysql_query($sql);
// [...]
Categories: PHP
If you are among those who have multiple machines on their desktop, then you must be familiar with the problem of goofing up with the keyboard and mouse. You start typing and suddenly realize that the keyboard which you are using is not the one intended. Also, multiple keyboards and mice eat up a lot of desk space. In case of KVM Switch, it reduces the number of monitors as well, along with keyboards and mice. And sometimes, sliding between [...]
Categories: Hacking, Internet tools, PC Tips

