"> "/> "/> "/> "/> "/> "/> "/>
$r[title]\n"); if ($r['description'] != ''){ echo "
\n"; echo $r['description']; echo "
\n"; } //Photos of the album $q_photo = mysqli_query($con, "SELECT id, file, permalink, title_$lang AS title, description_$lang AS description, photo.dtime AS dtime, uploaded, width, height, size, user, username FROM photo, photo_album WHERE photo_album.photo = id AND album = $r[id] ORDER BY photo.dtime DESC;"); /* TODO AND approved = 1*/ while ($r_photo = mysqli_fetch_array($q_photo)){ echo "
\n
\n"; echo "
\n"; echo("\n"); if (strlen($r_photo['title']) > 0 ){ echo "

$r_photo[title]

\n"; } if (strlen($r_photo['description']) > 0 ){ echo "" . cutText($r_photo['description'], 50) . "\n"; } //Count comments $q_comments = mysqli_query($con, "SELECT id FROM photo_comment WHERE photo = $r_photo[id];"); echo "" . mysqli_num_rows($q_comments) . " \n"; //TODO: icon echo "\n
\n"; } ?>