ciao,

ho un campo "pd_thumbnail" della tabella img in cui ho inserito il nome delle thumbnail.
l'immagine è inserita nella cartella images/product e ha ovviamente lo stesso nome del record inserito nel campo della tabella.
adesso lo estraggo dal db nel ciclo while:



Codice PHP:
 $query mysql_query("SELECT * FROM tbl_product WHERE cat_id = {$_GET['id']}") or die (mysql_error());
      if (
mysql_num_rows($query) >0){
         while(
$row mysql_fetch_array($query)){
            echo 
$row['pd_name']."
"
;

         if (
$row['pd_thumbnail']) {
            
$pd_thumbnail WEB_ROOT 'images/product/' $row['pd_thumbnail'];
           echo 
$pd_thumbnail;
        } else {
            
$pd_thumbnail WEB_ROOT 'images/no-image-small.png';
        }

          } 
WEB_ROOT è definito, ma quando cerco di visualizzare l'immagine nella pagina, mi esce il percorso (..../front-end/images/product/1579f05c1909b2ab190d12ff0058511c.jpg) anzichè l'immagine stessa....


mah...