you want a cross between javascript and php/mysql... nice.
Well find some javascript.
then make a table with rows called links.
with in it put name, link.
use a loop with some arrays then merge it in somehow and BAM! you have it...
sorry not very descriptive.. but I have been coding all night O_____O