Can someone please help me undestand why the output of the query will not wrap the results in my table? It just keeps going on horizontally instead of wrapping the results...
Thank you for the wisdom that you will share.....
<?PHP
$dbcnx = @mysql_connect("localhost", "username", "password");
mysql_select_db("dinary_data");
if ($date == "")
{$date = '%';}
if ($judge == "")
{$judge = '%';}
if ($filename == "")
{$filename = '%';}
$result = mysql_query("select * from binary_data ");
echo("<table width=300px border=1><tr><td width=50px>Date</td><td width=50px>Cas
e Number</td><td width=50px>Case Name</td></t
r>");
while ($r = mysql_fetch_array($result)) {
echo("<TR>\n");
$date = $r["date"];
$case_num = $r["case_num"];
$filename = $r["filename"];
echo("<TD>$date</TD>\n");
echo("<td>$case_num</td>\n");
echo("<td ><a href='" . $r["filelocation"] . "'>" . $r["filename"] . "</td>\n"
);
echo("</tr>\n");
}
if ($filename == 0)
{
echo("Your search did not return antyhing");
}
echo("</table>");
?>