Hi...
I just test them.. and respond well..
But some how I got a parse error on line 2.. I think is the header error...
this how i put them..
<?php
//send xhtml mp headers
header ('Content-type: application/vnd.wap.xhtml+xml');
?>
<? xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
and on my search coding...this is how i put them...:
<?php
// connect to database
$staffInfo = mysql_pconnect("hostname", "id", "password");
//select database
$db = mysql_select_db("db name");
//select information from sports db
$query = "select name, phNo, office";
$result = @mysql_query($query);
print "<b>Staff Searched:</b> <br />";
//if information fitting the query is found, it will display it to the screen.
if (mysql_num_rows($result) > 0) :
while ($row = mysql_fetch_array($result)) :
print "$row[Name] $row[Work Phone] $row[Other Phone] $row[Email] $row[Office Location] <br />";
endwhile;
//if no information is available, error message display
else:
print "Search not found.";
endif;
?>
[/I]
Hope you get it... for this searching functionality contain on this page only..