Dabei soll die Abfrage eigentlich folgendes bewirken:
"Wenn das Bild unter dem Pfad existiert und überhaupt ein Bild angegeben ist, dann lass alles so wie es ist. Ansonsten nimm noscreen.jpg anstelle von SQL Abfrage."
<?php
if(file_exists("inlcude/images/gallery/".$row['ssurl']."" AND $row['ssurl'] != '')){
$row['ssurl'] = $row['ssurl'];
}else{
$row['ssurl'] = "noscreen.jpg";
}
if(file_exists("inlcude/images/gallery/".$row['ssurl2']."" AND $row['ssurl2'] != '')){
$row['ssurl2'] = $row['ssurl2'];
}else{
$row['ssurl2'] = "noscreen.jpg";
}
if(file_exists("inlcude/images/gallery/".$row['ssurl3']."" AND $row['ssurl3'] != '')){
$row['ssurl3'] = $row['ssurl3'];
}else{
$row['ssurl3'] = "noscreen.jpg";
}
if(file_exists("inlcude/images/gallery/".$row['ssurl4']."" AND $row['ssurl4'] != '')){
$row['ssurl4'] = $row['ssurl4'];
}else{
$row['ssurl4'] = "noscreen.jpg";
}
?>
Könnt Ihr bitte mal drüberschaun und mir den Fehler an der Abfrage sagen?
MfG
Zuletzt modifiziert von Anarchy 90210 am 14.08.2011 - 21:25:22
Zuletzt modifiziert von Anarchy 90210 am 14.08.2011 - 21:33:45

