<?php
// $Id: lid.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
// ------------------------------------------------------------------------- //

// Single Links
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.lid")."=$id
	AND
	".$db->prefix("mylinks_cat.cid")."=".$db->prefix("mylinks_links.cid").")";

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

return $result;
}
?>
