require("includes/midas.inc.php");
$page_content_arr = get_page_content();
$result_catm = db_query("select * from ogd_link_categories where lc_cat_slug = '".urldecode($_REQUEST['catname']).".html' and lc_cat_status = 'Active' ");
if(mysql_num_rows($result_catm)){
$row_catm = mysql_fetch_array($result_catm);
}
if($row_catm['lc_cat_meta_title']){
echo '
$result_catd = db_query("select * from ogd_link_categories where lc_cat_slug = '".urldecode($_REQUEST['catname']).".html' and lc_cat_status = 'Active' ");
if(mysql_num_rows($result_catd)){
$row_catd = mysql_fetch_array($result_catd);
?>
=$row_catd['lc_cat_h1_tag']?>
=$row_catd['lc_cat_text']?>
$result_link = db_query("select ogd_links.*, lc_cat_title from ogd_links inner join ogd_link_categories on lc_id = lk_lc_id where lc_cat_slug = '".urldecode($_REQUEST['catname']).".html' and lk_status = 'Active' ");
if(mysql_num_rows($result_link)){
while($row_link = mysql_fetch_array($result_link)){
echo "
".$row_link['lk_anchor_text']."
".$row_link['lk_desc']."
";
}
}
else{
echo "No links";
}
}
?>