Hello,
I have the following php code which I need to change a bit and make the table vertical scroll available (currently is fixed - want to be scrollable), please advice. Thanks in advance,
echo "
<div align = 'center';>
<table width='1000' cellspacing=0 cellpadding=3 border='1'>
<tr><td colspan=4><B>$ticker</B> [ $sdate - $edate ]</td></tr>
";
if($q = mysqli_query($db, $query, MYSQLI_STORE_RESULT)) {
echo "<tr bgcolor='#DADADA' align='center'><td width='40%'><B>DATE</B></td><td width='20%' bgcolor='#FA9DDE'><B>YELLOW</B></td><td width='20%'><B>GREEN</B></td><td width='20%' bgcolor='#F59D6E'><B>BROWN</B></td></tr>";
while($r = mysqli_fetch_row($q)) {
if (count($r) > 1)
{
if ($r[1] > 0) $r1 = '<B>1</B>';
else $r1 = '';
if($r[2] > 0) $r2 = '<B>1</B>';
else $r2 = '';
if($r[3] > 0) $r3 = '<B>1</B>';
else $r2 = '';
echo "<tr align=center><td bgcolor='#DADADA'>{$r[0]}</td><td bgcolor='#FA9DDE'>$r1</td><td>$r2</td><td bgcolor='#F59D6E'>$r3</td><tr>\n";
}
}
echo "</table>";
}
else
{
echo "<tr><td colspan=4><B>An error has ocurred, please try again.</b></td></tr></table>\n";
}
echo "</div>";
}