Can anyone explain to me why I'm getting a duplicate output of my html? Don't worry about my html_main stuff.. this is for integration of another product. Although everything outputted is in the $DATA before it goes there.. so before it gets to $DATA it's screwing up.
$list = '';
if ($handle = opendir('./uploads/')) {
while (false !== ($file = readdir($handle)))
{
if ($file != '.' && $file != '..')
{
$temp = mysql_query("SELECT * FROM `uploads`");
while ($upload = mysql_fetch_array($temp)) {
$list = "<tr><td style='border-bottom:2px #335566 solid;color:#335566;font-weight:bold;font-size:11px;background-color:#DDDDBB'><a href=\"./uploads/".$upload['name']."\">".$upload['name']."</a> - ".$upload['description']."<td></tr>";
}
}
}
closedir($handle);
}
$DATA = "
<br /><br />
<table align='center' style='color:#FFFFFF;font-weight:bold;font-size:2em;background-color:#335566; border: 3px #DDDDBB solid;' width='95%'>
<tr>
<td align='center'>
<font style='color:#DABF2C;'> Sales Ideas (.PDF Format) - (</font><a href='./pdf_upload.php'><font style='color:#DABF2C;'><u>Upload New</u></span></a>)
</td>
</tr>
".$list."
</table>
<br /><br />
";
html_main($DATA,"","");
It's been a long long night/day.