Transparent

Transparent

1500) { $last = 50; } $sql_photo1 = "SELECT *, UNIX_TIMESTAMP(time) as time FROM photo ORDER BY time DESC LIMIT $last"; $result_photo1 = mysql_query($sql_photo1); if ($row_photo1 = mysql_fetch_array($result_photo1)) { echo "\n"; echo "\n"; $i = 0; $aantal_kolommen = 4; do { $pht_id = $row_photo1["pht_id"]; $pht_bstf_id = $row_photo1["pht_bstf_id"]; $sql_thumbnail = "SELECT * FROM photo_thumbnail WHERE pht_id = $pht_id"; $result_thumbnail = mysql_query($sql_thumbnail); $row_thumbnail = mysql_fetch_array($result_thumbnail); echo "\n"; $i++; // Sluit eventueel rij af if ($i%$aantal_kolommen == 0 && $i>0) { echo "\n"; echo "\n"; } } while ($row_photo1 = mysql_fetch_array($result_photo1)); echo "
\n"; $photo_number = $i + 1; echo "" . $photo_number . ". (" . $row_photo1["views"] . " views)
"; echo "" . $row_photo1["title"] . "

\n"; echo "
\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; echo "
\n"; echo "> View last    pictures (500 max)

\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; ?>