PHP-Code:
<?
include ("dbconnect.php");
$eintraege=explode("|",$zusammenfassung);
for ($x=0;$x<count($eintraege);$x++)
{
$AND .= " AND catchword.name like '".$eintraege[$x]."' ";}
$sql = mysql_query("SELECT * FROM catchword
LEFT JOIN file ON catchword.file_id=file.id WHERE catchword.file_id<>1 ".$AND);
while($row = mysql_fetch_object($sql))
{
echo"<a href='picture/$row->name'>
<img src=\"thumbs/$row->name\" border='1'> <br></a>";
}
?>
Kommentar