This is a hack really, but I wanted a quick solution.
This will put the title of each gallery in an array:
<?php
$galleries = array();
$query = "SELECT * FROM wp_ngg_gallery WHERE gid";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
$galleries[] = $row['title'];
}
This will echo links to each gallery. page_id will be specific to your wordpress install.
<?php
$i = 1;
foreach ($galleries as &$value) {
echo '<a href="/?page_id=61&album=1&gallery='.$i.'">'.$value.'</a>';
$i++;
}
?>
You may have to surround wp_ngg_gallery and gid with tick marks. I tried but the forum here replaced them with code tags.