Hi,
I've created a database table that stores an image url. I want to reference this image in another page. The problem is, the image is not showing up, even though it IS on the server, and the url is correct.
Here is the page: HELP ME
Here is my script:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?PHP
require('config.inc');
// connect to database
$cid = mysql_connect($host,$usr,$passwd);
$select_db = mysql_select_db($db);
$sql = "SELECT dir, dir_url, dir_img FROM gallery_dir";
$result = mysql_query($sql);
while ($directory = mysql_fetch_array($result)) {
$dir = $directory['dir'];
$dir_url = $directory['dir_url'];
$dir_img = $directory['dir_img'];
echo "<a href=\"$dir_url\"><img src\"$dir_img\"></a><br>";
echo "$dir<br><br>";
}
?>
</body>
</html>