I can't find out why This doesn't work? The code below is returning nothing, showing it has an error:
<html>
<head>
<title>StiMail</title>
<meta http-equiv="content-language" content="en">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta Name="generator" content="PHPEd 2.95.1">
<META Name="description" CONTENT="Great games and entertainment. Games for everyone. Log in and play and in the end, buy some food for your stiguy/gal and do some chance games. Also a stockmarket for those looking into being successful as much like the real world as possible.">
<META Name="keywords" CONTENT="sti stiguy guy gal stigal game games fun cool entertainment great food feed play give get buy sell stock market stockmarket stocks excitement">
<meta Name="author" content="Fahrzin Hemmati">
<META HTTP-EQUIV="Reply-to" CONTENT="Admin@stiguy.com">
<link rel="SHORTCUT ICON" href="/path-to-ico-file/logo.ico">
<meta Name="robots" content="index, follow">
<meta Name="revisit-after" content="7 days">
</head>
<body bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%" valign="top">
<OBJECT classid="clsid😃27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0"
ID=Tool Bar WIDTH=143 HEIGHT=355>
<PARAM NAME=movie VALUE="http://stiguy.com/toolbar.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#ffffff>
<EMBED src="http://stiguy.com/toolbar.swf" quality=high bgcolor=#ffffff WIDTH=550 HEIGHT=50 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>
</td>
<td width="77%" align="left" valign="top">if ($action="read"){
print "You have ".$mails." message(s)."
$mails= fopen("/stimail/".$username.".eml","r")
$mailnum=fread($mails,1)
for ($curmail=1;$curmail<=$mails;$curmail++){
print "Message ".$curmail.":"
$curmessage=fread($mails,"1")
}
fclose($mails)
}else{$mails= fopen("/stimail/".$username.".eml","r")
$mailnum=fread($mails,1)
fclose($mails)
print "<div align='center'><font size='7'>StiMail</font>"
print "<br><a href='/stimail.php?username=".$username."&action=read&mails=".$mailnum."'>You have "
print $mailnum." messages</a>" ?>
}
?>
<br>Please delete all read messages.</div>
<br><a href="/stimail.php?username=print $username?>&action=send">Send Message</a>
</body>
</html>