links

global $wpdb;

function getLinks_page($cat) {
global $wpdb;
if(!mysql_connect($wpdb)) {echo mysql_error();};

$getLinks = "SELECT * FROM $wpdb->links
WHERE link_category = ” . $cat . “”;

$links_r = $wpdb->get_results($getLinks, ARRAY_A);
$links_n = count($links_r);

for ($i=0; $i<$links_n; $i++) {
echo '‘;
echo $links_r[$i]['link_name'];
echo ‘
‘;

}

}
?>

Dads
Moms