Premièrement voici mon code
<td class="image"> <? if ($showimg=="oui"){ ?>
<A HREF="#" onClick="window.open('thumb_b/b_<? echo $rows['code']; ?>.jpg','_blank',' width=410, height=500');return(false)">
<? echo('<img src="thumb/'.$rows['code'].'_t.jpg" >');}?></a></td>
J'aimerais faire un IF qui va charcher dans mon dossier "thumb" voir si <? echo $rows['code']; ?>.jpg existe, sioui, il l'affiche, sinon il affiche autre chose exemple une autre image. Je sais comment pour rechercher dans la Bdd, mais pour dans un dossier ???
Merci de votre aide