Das verstehe ich nicht wirklich!? Habe folgendes probiert
Alles anzeigen
Dann bekomme ich jedoch folgende Fehlermeldung:
Es soll sich einfach das Bild in mittlerer Größe in einem neuen Fenster öffnen. Später baue ich dann beim Link noch ein rel="lightbox" ein um es in dieser zu öffnen.
Quellcode
- echo "<ul>";
- // Loop through the photos and output the html
- foreach ($photos['photo'] as $photo) {
- if ($i % 3 == 0) {
- echo "<p>\n";
- }
- echo "<li class=\"bilderblock\"><a href=$f->buildPhotoURL($photo, "Medium")>";
- echo "<img border='0' class=\"reflect rheight40 ropacity30\" alt='$photo[title]' ".
- "src=grey.php?url=" . $f->buildPhotoURL($photo, "Small") . ">";
- echo "</a></li>";
- $i++;
- // If it reaches the sixth photo, insert a line break
- if ($i % 3 == 0) {
- echo "<p>\n";
- }
- }
- echo "</ul>";
Dann bekomme ich jedoch folgende Fehlermeldung:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/u0025194115/public_html/new/photofeld/index.php on line 38
Es soll sich einfach das Bild in mittlerer Größe in einem neuen Fenster öffnen. Später baue ich dann beim Link noch ein rel="lightbox" ein um es in dieser zu öffnen.