<?php //header("content-type:application/xml");
header("content-type:text/vnd.wap.wml");
echo "<?xml version=\"1.0\" ?>\n";
echo '<!DOCTYPE wml PUBLIC "-http://WAPFORUM//DTD WML 1.1//EN" ';
echo '"http://www.wapforum.org/DTD/wml_1.1.xml">';
?>
<wml>
<template>
<do type="prev" label="Back">
<prev/>
</do>
</template>
<?php
echo ("<card id=\"result\" title=\"Jakarta myDininGuide Result\">\n");
echo ("<p>Inilah Dining Info Anda:</p>\n");
echo ("<p align=\"left\">\n");
?>
<?php
$db = mysql_connect("localhost","root", "") or die ("Could not connect"); //put your database server, username, and password here
mysql_select_db("resturaunts",$db); //put here the name of your mysql database
$result = mysql_query("SELECT name,type_of_food,phone_number,location FROM info WHERE name LIKE '%$word%' OR type_of_food LIKE '%$word%' OR location LIKE '%$word%'
ORDER BY id DESC LIMIT 10");
while ($row = mysql_fetch_row($result))
{
for ($i=0; $i<10; $i++)
{
echo ("$row[$i],\n");
}
}
echo ("</p><p>Thank you for using Jakarta myDininGuide, www.eazt.com</p>\n");
echo ("</card>\n");
?>
</wml>