I'm developing a wap site with wml and php.
my php code is retrievig and displaying blob image from database.
but i cannot include any wml part to this page.
actually i want to display image from database with some links.
is it possible ? plz help me....
my php code is....
[code=php]
<?php
function db_connect($use r='root', $password='admi n', $db='example')
{
mysql_connect(' localhost', $user, $password) or die('I cannot connect to db: ' . mysql_error());
mysql_select_db ('example');
}
db_connect();
$sql = "select imgdata from pix where title=2";
$result = mysql_query("$s ql");
while($row = mysql_fetch_ass oc($result))
{
$bytes = $row['imgdata'];
}
header("Content-type: image/jpeg");
echo $bytes;
exit ();
mysql_close();
?>
[/code]
my php code is retrievig and displaying blob image from database.
but i cannot include any wml part to this page.
actually i want to display image from database with some links.
is it possible ? plz help me....
my php code is....
[code=php]
<?php
function db_connect($use r='root', $password='admi n', $db='example')
{
mysql_connect(' localhost', $user, $password) or die('I cannot connect to db: ' . mysql_error());
mysql_select_db ('example');
}
db_connect();
$sql = "select imgdata from pix where title=2";
$result = mysql_query("$s ql");
while($row = mysql_fetch_ass oc($result))
{
$bytes = $row['imgdata'];
}
header("Content-type: image/jpeg");
echo $bytes;
exit ();
mysql_close();
?>
[/code]
Comment