Hello,
All I get is the little red x with a box around it. When I click on the red x and look at the properties, it is showing the correct place for the file.
Any help is appreciated.
<?php
require("variables.php");
mysql_connect("$DBHost","$DBUser","$DBPass") or die("Failure to connect");
mysql_select_db("$DBName");
$query = "SELECT file FROM myfiles WHERE (id = '$listingid')";
$result = mysql_query($query) or die("Could not complete database query");
$num = mysql_num_rows($result);
if ($num != 0) {
$row = mysql_fetch_array($result);
echo "<img src='$row[file]'><br><br>";
}
?>