Here's my database connection code.
I want to display the blob image into td
<?php while ($news = mysql_fetch_assoc($content))
{
echo "<tr>";
echo "<td>" .$news['<img src = "data:image/jpg;base64,'.base64_encode($img).'"/>']. "</td>";
echo "</td>";
echo "<tr>";
echo "<td>" .$news['title']."</td>";
echo "</td>";
echo "<tr>";
echo "<td>" .$news['content']."</td>";
echo "</td>";
echo "<tr>";
echo "<td>" .$news['date']."</td>";
echo "</td>";
echo "<tr>";
echo "<td>" .$news['author']."</td>";
echo "</td>";
}
?>
and I got a error says undefined index