| |
|
|
| |
|
include_once 'config.php';
include "opendb.php";
$cdate=mktime();
$inewsquery = "select `id`, `header`, `small_desc`, `date_ir` from ynfx_mis_ir WHERE visibility='1' AND status ='a' and `special_type` = 'Y' order by date_display_from desc limit 4";
$inewsresult = mysql_db_query("ynfx_revamp",$inewsquery);
include "closedb.php";
$dispin = "";
if (mysql_error()) echo mysql_error();
$count = mysql_num_rows($inewsresult);
for ($i=0;$i<$count;$i++)
{
$id=mysql_result($inewsresult,$i,"id") ;
$date_news=mysql_result($inewsresult,$i,"date_ir");
$body = mysql_result($inewsresult,$i,"header");
$dispin.= " |
|
| ";
$shortbody = substr($body, 0, 40);
if ($body == $shortbody)
{
$dispin.= "";
}
else
{
$dispin.= "";
}
$dispin.= " |
| ".date("d-M-Y h:s", $date_news)." |
|
";
} // for loop
?>
//include "news_left_research.php";?>
| |
| |
| include "mi_industry_reports.php";?> |
|
|
|
|