<?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
// ------------------------------------------------------------------------- //

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

$SQL =  "
	SELECT
	".$db->prefix("mydownloads_cat.title").",
	".$db->prefix("mydownloads_downloads.title").",
	".$db->prefix("mydownloads_downloads.description")."
	FROM
	".$db->prefix("mydownloads_cat").",
	".$db->prefix("mydownloads_downloads")."
	WHERE
	(".$db->prefix("mydownloads_downloads.cid")."=$id
	AND
	".$db->prefix("mydownloads_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;
}
?>
