| Мне надо, чтобы картинка отображалась картинкой, а не набором безумных символов. Как мне это сделать в этом запросе -
<?
// List products belonging to this category...
$sql="SELECT product.* from productcategory, product WHERE productcategory.categoryid = $cat AND product.productid = productcategory.productid";
$result = @mysql_query($sql,$db);
for ($i = 0; $i < @mysql_num_rows($result); $i++) {
$productid = @mysql_result($result, $i, "productid");
$kod = @mysql_result($result, $i, "kod");
$productname = @mysql_result($result, $i, "name");
$img = @mysql_result($result, $i, "img");
$content = @mysql_result($result, $i, "content");
$description = @mysql_result($result, $i, "description");
$volume = @mysql_result($result, $i, "volume");
$price = @mysql_result($result, $i, "price");
print $img;
echo "<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\" width=\"100%\"><tr><td>
<font face=\"Arial, Helvetica, sans-serif\" color=\"#999999\"><b>$kod<br> $productname</b></font></td></tr>
<tr><td>$img</td></tr>
<tr><td><p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$content</font></p></td></tr>
<tr><td><p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$description</font></p></td></tr>
<tr><td><p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$volume</font></p></td></tr>
<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><b>Öåíà:</b>
<font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$price ðóá.</font></td></tr><tr><td>
<form><input type=\"button\" name=\"buy\" value=\"Äîáàâèòü â êîðçèíó\" onClick=\"buyItem($productid)\">
</form></td></tr></table>";
}
@mysql_close($db);
?> | |