Hi,
What is wrong in code below?
In MySql table "catalog" a field "image" indicates path and imagename, extension is jpg. images are stored in a joomla directory.
I've tried
What is wrong in code below?
In MySql table "catalog" a field "image" indicates path and imagename, extension is jpg. images are stored in a joomla directory.
I've tried
<? php
$img_path="/path/images/" ;
$query = "SELECT id, image FROM catalog";
$db->setQuery($query);
foreach ( $roww as $r ) {
// $imag = table.image;
// $pictur=$img_path.$imag ;
// header("Content-Type:image/jpg");
// echo "<img src="$pictur" width=120 height=90>";
echo "<img src="$r[image]" width=120 height=90>";
}
?>