<?php
// $Id: cid.php,v 1.1 2004/07/11 10:28:52 Farsus Exp $
// -------------------------------------------------------------------------//
//			       RUNCMS                                                   //
//                                                                          //
//	 reliable - Unique - Nocost &  Simplicity & ease off use                //
//                       < http://www.runcms.org >                          //
// -------------------------------------------------------------------------//
// Original Author: Half-Dead
// Author Website : http://www.e-xoops.com
// License Type   : Proprietary: See /manual/LICENSES/E-Xoops.txt
// ------------------------------------------------------------------------- //

// Links Categories
function get_meta($id, $limit) {
global $db;

$SQL =  "
	SELECT
	".$db->prefix("mylinks_cat.title").",
	".$db->prefix("mylinks_links.title").",
	".$db->prefix("mylinks_links.description")."
	FROM
	".$db->prefix("mylinks_cat").",
	".$db->prefix("mylinks_links")."
	WHERE
	(".$db->prefix("mylinks_links.cid")."=$id
	AND
	".$db->prefix("mylinks_cat.cid")."=$id)";

$query = $db->query($SQL, $limit);
while (list($cat_title, $link_title, $description) = $db->fetch_row($query)) {
	$result["title"]     = $cat_title;
	$result["keywords"] .=  " ". $link_title ." ". $description ." ";
}

return $result;
}
?>
