The code won't even make it to that part, it makes it to the line right before I create the table to specify what each item is, like Delete, Subject, Sender, yada, it will show a part of the html and quit therfe, but once you refresh the code below works properly.
This is the code that does all the work:
<?
$pop_connect = imap_open("{localhost:110/pop3/notls}INBOX",$accountfull,$password,OP_HALFOPEN) or die("Can not connect to POP mailbox"

;
$message_total = imap_num_msg($pop_connect);
if ($message_total==0){
echo "<tr bgcolor=\"#999999\">";
echo "<td colspan=\"6\"><div align=\"center\" class=\"whitetext style12\">No Messages To Display </div></td></tr>";
}
else{
for($i=$message_total;$i>0;$i--){
$message_info = imap_header($pop_connect,$i);
$email_from = substr($message_info->fromaddress,0,19);
if (strlen($message_info->Subject)>1) $email_subject = substr($message_info->Subject,0,30);
else $email_subject ="No Subject";
$email_date = substr($message_info->Date,5,11);
echo "<tr bgcolor=\"#999999\">";
echo "<td><div align=\"center\"><input type=\"checkbox\" name=\"$x\" value=\"DELETE\"></div></td>";
echo "<td class=\"whitetext\">$email_subject</td>";
echo "<td class=\"whitetext style11\">$email_from</td>";
echo "<td class=\"whitetext\"><div align=\"center\">SIZE</div></td>";
echo "<td class=\"whitetext\"><div align=\"center\">$email_date</div></td>";
echo "<td class=\"whitetext\"><div align=\"center\">Shrug</div></td></tr>";
}
}
?>