Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?php
print '<html><head><style>
.gray { background-color: gray; };
.white { background-color: white; };
</style></head><body><table border=1>';
$dbh = mysql_connect ('localhost', 'fu', 'bar');
mysql_select_db('fubar', $dbh);
$rh = $mysql_query ("SELECT fu, bar from fubar", $dbh);
$counter = 0;
while ($result = mysql_fetch_array ($rh))
{
print '<TR class=';
print ($counter % 2 == 0)? "gray" : "white";
print '><td>$result['fu']</td><td>$result['bar']</td></tr>';
$counter++;
}
print '</table></body></html>';
?>