%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/dordingu/public_html/solidiv/
Upload File :
Create Path :
Current File : /home/dordingu/public_html/solidiv/listofnews.php.inc

<?php

$sql="select count(*) from solidiv_news";
$result=mysql_query($sql,$db);
$myrow=mysql_fetch_array($result);
$num_rows=$myrow[0];	
                  

 $sql="select n_id,UNIX_TIMESTAMP(n_date) as my_date,n_title_eng, news_english, pic_link,n_pic,n_newstype from solidiv_news order by n_date desc,n_id desc limit 05,15";

$result=@mysql_query($sql,$db);
while ($myrow=mysql_fetch_array($result))
	{
	$n_id=$myrow["n_id"];
	$n_date=date($date_format,$myrow["my_date"]);
	$end_date=$myrow["end_date"];
	$news_english=$myrow["news_english"];
	$pic_link=$myrow["pic_link"];
	$news_hold=explode("\n",$news_english);
	$picture=$myrow["n_pic"];
	$n_newstype=$myrow["n_newstype"];
	$n_title_eng=$myrow["n_title_eng"];

      echo "<a href=newsone.php?n_id=$n_id>";
      echo "$n_title_eng - ";
      echo "$n_date</a><BR> ";
}

?>

Zerion Mini Shell 1.0