0 || folder='group'"); $num_rows = mysql_num_rows($result); $query = "SELECT * FROM $tablePrefix"."albums WHERE codename='$albumDir' "; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); $albumName = $row['name']; $number = $row['images']; $download = $row['download']; $query = "SELECT * FROM $tablePrefix"."images WHERE album='$albumDir' ORDER BY sort "; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); $startimage = $row['filename']; ?>