Hello, I'm about as new to PHP as one can get and it's driving me crazy as I learned how to use Dreamweaver and Flash from Marin Graphics Visually books... And of course there is no such thing as those for PHP...
Anyway, my problem is this. I have my images stored on my server in a folder called images and in the database the names of the associated images are listed in the Pictures column. I would like the images to be displayed with the associated data. I finally figured out how to display the data, but I can't figure out how to get the images to do so. This is what I have so far.
<?php
$i=0;
while ($i < $num) {
$first=mysql_result($result,$i,"first");
$last=mysql_result($result,$i,"last");
$phone=mysql_result($result,$i,"phone");
$mobile=mysql_result($result,$i,"mobile");
$fax=mysql_result($result,$i,"fax");
$email=mysql_result($result,$i,"email");
$web=mysql_result($result,$i,"web");
$Pictures=mysql_result($result,$i,"Pictures");
echo "<b>$first $last</br><hr><br>";
echo "<b>Phone: $phone</br><hr><br>";
echo "(img src=$Pictures)";
$i++;
}
?>
The names and the phone number are displaying as they should. The pictures are not. Then it dawned on me that nowhere have I told the page where to get the images, i.e. I've not told it where the images folder is.
Any help would be greatly appreciated!