Help! I cannot figure out why images i have stored in my mysql database won't display using PHP. I think I am missing something very basic. Here is the code I am using to retrieve the image and other text information, which shows up fine:
<?php
$dbh = mysqli_connect("--", "--", "--", "--");
$sql = "SELECT Title,Content,Date,image FROM Posts ORDER BY id DESC";
$query = mysqli_query($dbh,$sql);
if($query) {
$rows = mysqli_num_rows($query);
for($i = 0; $i < $rows; $i++) {
$feed = mysqli_fetch_array($query);
$title = $feed['Title'];
$post = $feed['Content'];
$date = $feed['Date'];
echo "<tr >\n";
echo "<td >\n";
echo "$title"</a>\n";
echo "<p>$date</p><br/>";
echo " <p>$post</p><br/>\n";
echo "$pic";
echo " <a href=\'delete.php?id=$id\'>delete this p0st</a>\n";
echo "<hr />\n";
echo "</td >\n";
echo "</tr>\n";
}
}
echo"</body>
</html>"
?>
In the place where the image should be displayed, the word "Array" is all that appears. Please Help! Thank you..