I just complete a wap project.Here i had to view data from database.Its not a tough work.But the problem is i have to view the data as wap site.So that the mobile user can use it.Here is the code
<?php
DataBase Connection
echo’[?xml version="1.0"?>
!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml"]‘;
echo ‘[wml][card title = "Wallpaper"]‘;
echo ‘[table]‘;
echo ‘[tr][td]Name[/td][td]Contant[/td][/tr]‘;
while($row = mysql_fetch_assoc($re) )
{
$img = str_replace (’../../’,’../’,$row[content]);
echo ‘[tr][td]‘.$row[name].’[/td][td]‘;?][img src="[?=$img?]” width=”100″ height=”100″/] [? echo $img.'[/
td][/tr]‘;
}
echo ‘[/table][/card][/wml]‘;
?>












