hello i added a field in my table for images with field type long blob...how can i display it in my php code.. ihave this in my code:
Row 6 is the field for images please help....
i have added this code to display but it doenst show any image ..thanks
echo "<td align='right'><img src=\"$Row[6]\"alt=\"\"/></td>";
Row 6 is the field for images please help....
i have added this code to display but it doenst show any image ..thanks
echo "<td align='right'><img src=\"$Row[6]\"alt=\"\"/></td>";
PHP:
<?
$TableName = "automobileparts";
$SQLstring = "SELECT * FROM automobileparts";
require_once("dbconnect.php");
echo "<table width='100%' border='1'>";
$Row = $QueryResult->fetch_row();
do {
echo "<tr><td>{$Row[0]}</td>";
echo "<td align='right'>{$Row[1]}</td>";
echo "<td align='right'>{$Row[2]}</td>";
echo "<td align='right'>{$Row[3]}</td>";
echo "<td align='right'>{$Row[4]}</td>";
echo "<td align='right'>{$Row[5]}</td>";
echo "<td align='right'><img src=\"$Row[6]\"alt=\"\"/></td>";
echo "<td align='right'><a href=\"Mail2.php?id={$Row[0]}\">Order</a></td>";
echo "</tr>";
$Row = $QueryResult->fetch_row();
} while ($Row);
echo "</table>";
$DBConnect->close();
?>
Last edited: