Location: PHPKode > projects > News Manager - RSS aggregator > newsmanager/rss_link.php
<?php
include('dbconnect.php');

function get_newslang($lang_en,$view,$newspotlight_)
{
	if($view!="")
	{
	  include("spot_qry_rss.php");
	  $comp_id=$xml_id_new_S.$xml_id_S;

	}

    if($view=="spot"){
			$newid_X=trim($xml_id_new_S,",");
			$id_X=trim($xml_id_S,",");
	  }


	if($id_X!="")
	{
		$xml_qry="select * from rssurl_newsitem where url_newsitem_id in ($id_X)";
		$xml_res=$pg_sql->query_pass($xml_qry,"4");

	}
	if($newid_X!="")
	{
		$xml_qry_new="select * from new_newsitem where newsitem_id in ($newid_X)";
		$xml_res_new=$pg_sql->query_pass($xml_qry_new,"4");

	}

     $total_spot_ex=count($xml_res)+count($xml_res_new);
     return($total_spot_ex);
}

//************************************************

if(get_newslang('en','spot','In the Spotlight')>0)
{

  echo "Raamg";
}


?>
Return current item: News Manager - RSS aggregator