<?php
// $Id: cat_id.php,v 1.1 2004/07/11 10:28:53 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
// ------------------------------------------------------------------------- //

// Xoops Faq Entries

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

$SQL =  "SELECT
	".$db->prefix("xoopsfaq_contents.contents_title").",
	".$db->prefix("xoopsfaq_contents.contents_contents").",
	".$db->prefix("xoopsfaq_categories.category_title")."
	FROM
	".$db->prefix("xoopsfaq_contents")."
	INNER JOIN
	".$db->prefix("xoopsfaq_categories")."
	ON
	".$db->prefix("xoopsfaq_contents.category_id")."=".$db->prefix("xoopsfaq_categories.category_id")."
	WHERE
	(".$db->prefix("xoopsfaq_contents.category_id")."=$id
	AND
	".$db->prefix("xoopsfaq_categories.category_id")."=$id)";

$query = $db->query($SQL, $limit);

while (list($question, $answer, $category) = $db->fetch_row($query)) {
	$result["title"]     = $category;
	$result["keywords"] .=  " ". $question ." ". $answer ." ";
}

return $result;
}
?>
