require("mysqlwindows.php"); error_reporting(E_ALL ^ E_NOTICE); error_reporting(0); $cache_time = 3600; header("Expires: ".gmdate("D, d M Y H:i:s", time()+$cache_time )." GMT"); $result = mysql_query('SELECT title,url,pubdate FROM windows where pubok="1" order by pubdate desc LIMIT 1000'); $count=mysql_num_rows($result); $total=0; if ($count>0) { $f1=array(); $title=array(); while($row=mysql_fetch_array($result)) { $total=$total+1; $filename=$row['url']; $title[$total]=$row['title']; $f1[$total]=$filename; $pd=$row['pubdate']; $pd=str_replace('-','',$pd); $pd1[$total]=$pd; } } mysql_close($con); ?>