thx a lot for help here what i wanna do with mysql
//connect to db
//select pid,imagepath,imagename from cpg_pictures
$dbh=mysql_connect ("localhost", "dbname", "pass") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("dbname");
$sql = 'SELECT `pid` , `filepath` , `filename` '
. ' FROM `cpg_pictures` '
. ' WHERE pid =$id
imlink=imagepath+imagename
echo <a href="$imlink""> Download image </a>
can u help me
Main Topics
Browse All Topics





by: jimmackPosted on 2004-06-14 at 14:43:45ID: 11310854
I don't know PHP that well, but I can tell you that you're missing the content type and WAP headers in your code at the moment. Here is the start of a PHP file that does set up the headers:
DTD/wml_1. 1.xml\">";
epath/$fil ename" ?>
<?php
header("Content-type: text/vnd.wap.wml; charset=windows-1255");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/
?>
<wml>
<card id .....
.
.
</wml>
I'm not sure how you'll format the reference interally, but I would guess that it will be something like:
.
.
<wml>
.
.
<a href=<?php print "http://www.vk123.com/$fil
.
.
</wml>
(remember, I'm guessing here ;-))