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

<?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]';

?>

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: