please could someone find the error in this code its for forums in a different page
<?php /* IrisBlaze wap forum by Ra'ed Shabana */ header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?> <wml> <?php include("config.php"); include("core.php"); connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $pmid = $_GET["pmid"]; if(islogged($sid)==false) { echo "<card id=\"main\" title=\"SITENAME HERE\">"; echo "<p align=\"center\">"; echo "You are not logged in "; echo "Or Your session has been expired "; echo "<a href=\"index.php\">Login</a>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } $uid = getuid_sid($sid); if(isbanned($uid)) { echo "<card id=\"main\" title=\"SITENAME HERE\">"; echo "<p align=\"center\">"; echo "<img src=\"images/notok.gif\" alt=\"x\"/> "; echo "You are Banned "; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg "; //echo "<a href=\"index.php\">Login</a>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } echo " These Are Your Forums $nick"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id"); $iml = "<img src=\"images/1.gif\" alt=\"*\"/>"; while($fcat=mysql_fetch_array($fcats)) { $catlink = "<a href=\"index.php?action=viewcat&sid=$sid&cid=$fcat[0]\">$iml$fcat[1]</a>"; echo " $catlink"; $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name"); if(getfview()==0) { echo " "; while($forum=mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid),$forum[0])) { echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$forum[0]\">$forum[1]</a>, "; } } echo ""; }else if(getfview()==20) { echo " Forums: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { if(canaccess(getuid_sid($sid),$forum[0])) { $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'")); echo "<option value=\"$forum[0]\">$forum[1]($notp[0])</option>"; } } echo "</select>"; echo "<anchor>[GO]"; echo "<go href=\"index.php\" method=\"get\">"; echo "<postfield name=\"action\" value=\"viewfrm\"/>"; echo "<postfield name=\"sid\" value=\"$sid\"/>"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "</go>"; echo "</anchor>"; } } echo "</small></p>"; echo "<p align=\"center\">"; echo "</p></card>"; } ?> </wml>
dude you do not have an opening card or page wrapper