Skip to content
April 2, 2008 / ranacse05

Data view from databse using wml

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

DataBase Connection

echo'[?xml version="1.0"?>



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.'[/



echo '[/table][/card][/wml]';



One Comment

Leave a Comment
  1. Manchumahara / Apr 3 2008 1:17 pm

    Keep it up

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: