select("SELECT id,title,timestamp,comment FROM gallery WHERE shared='Y' LIMIT 1;"); if( mysql_num_rows($result) == 0 ) { echo "
Leider kein Fotoalbum vorhanden!
\n"; } else { $row=mysql_fetch_object($result); $gallery = new Gallery(); $gallery->id = $row->id; $gallery->title = $row->title; $gallery->timestamp = strtotime($row->timestamp); $gallery->comment = $row->comment; $result = $dbConnection->select("SELECT id,file FROM picture WHERE gallery='" . $gallery->id . "' ORDER BY id DESC;"); if( mysql_num_rows($result) == 0 ) { echo "Leider keine Fotos vorhanden!
\n"; } else { $picCount = 0; while ($row=mysql_fetch_object($result)) { $picture = new Picture(); $picture->id = $row->id; $picture->file = $row->file; echo "file . "');\">