Ok mira este código aver si te funciona
Código PHP:
Ver original<?php
$dbhost = "localhost";
$dbname = "base de datos";
$dbuser = "user";
$dbpass = "pass";
$charset = "utf-8";
$conn = @mysql_connect($dbhost,$dbuser,$dbpass) or
die ("Error connecting to database"); $sql = mysql_query("SELECT id nombre categoria imagen FROM tabla ORDER BY id DESC") or
die ("Error selecting database"); print(" ".$line["nombre"]." ");
print(" ".$line["categoria"]." ");
print("<img src=\"".$line["imagen"]."\" width=\"23\" height=\"23\" \">");
}
?>