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

// Section Articles

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

$SQL = "SELECT
	".$db->prefix("nsections.secname").",
	".$db->prefix("nseccont.title").",
	".$db->prefix("nseccont.content")."
	FROM
	".$db->prefix("nseccont")."
	INNER JOIN
	".$db->prefix("nsections")."
	ON
	".$db->prefix("nsections.secid")."=".$db->prefix("nseccont.secid")."
	WHERE
	".$db->prefix("nseccont.artid")."=$id";

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

list($secname, $title, $content) = $db->fetch_row($query);
	$result["title"]     = $secname .", ". $title;
	$result["keywords"] .= $secname ." ". $title ." ". $content;

return $result;
}
?>
