the phone returns XML error while browsing our wap site...
here is my code... i dont know what to do... please help me... thanks in advance!
<?
header("Content-type: text/vnd.wap.wml");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
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>
<head>
<meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card id="home" newcontext="false" title="<?php echo "RMW WAP - " . $_GET['browse']; ?>"
<p>
<p>Welcome to RobinsonsMovieWorld!</p>
<a href="index.php?browse=galleria"> Galleria</a> |
<a href="index.php?browse=ermita"> Ermita</a> |
<a href="index.php?browse=novaliches"> Novaliches</a> |
<a href="index.php?browse=metroeast"> Metro East</a> |
<a href="index.php?browse=malabon"> Malabon</a> |
<a href="index.php?browse=imus"> Imus</a> |
<a href="index.php?browse=iloilo"> Ilo Ilo</a> |
<a href="index.php?browse=bacolod"> Bacolod</a> |
<a href="index.php?browse=starosa"> Sta. Rosa</a>
<?php
$cid = mysql_connect ("localhost");
mysql_select_db ("movies");
if ( trim( $_GET['browse'] ) == "" )
{
echo "<p>Please Select a branch</p>";
} else
{
$branch = trim ( $_GET['browse'] );
$cid = mysql_connect ("localhost");
mysql_select_db ("movies");
$sql = "SELECT * FROM $branch ";
$result = mysql_query ( $sql );
while ( $row = mysql_fetch_array ( $result ) )
{
printf ("<br>Cinema: %s, Title: %s </br>", $row['cinema_no'], $row['title'] );
}
}
?>
<p>Robinsons Movie World</p>
subject to change without prior notice
<b>Developed by: rjregalado.com</b></p>
</card>
</wml>