include "../../rcontrol/config.php";
include "../../rcommon/functions.php";
include "../../rcommon/stripallslashes.php";
include "../../rcommon/database.php";
//Retrieving News
$sql1="SELECT id, date, heading, SUBSTRING_INDEX(full_desc, ' ', 70) AS full_desc FROM ynfx_conews ORDER BY id DESC";
$result1=mysql_db_query($DATABASE, $sql1);
if(mysql_error()) print mysql_error();
if(!mysql_num_rows($result1)) {
echo "Darn - its an Error dude!!";
} else {
for($i=0; $i$dateofnews - $heading1
";
$displayconews1.="".stripslashes(nl2br($short_desc1))." ..Full Story
";
}
}
?>
echo $displayconews1; ?> |
|