// IF NECESSARY, CHANGE PATH TO CONFIG.PHP require("admin/config.php"); ?> if (empty($offset)) { $offset=0; } $result = mysql_query("select count(date) from $table order by date DESC"); $numrows = mysql_result($result, 0, 0); $result = mysql_query("select * from $table order by date DESC limit $offset,$limit"); while (list($id,$title,$date,$poster,$mail,$news) = mysql_fetch_row($result)) { $d = explode("-",$date); $day = $d[2]; $month = $d[1]; $year = $d[0]; $hour = $d[3]; $min = $d[4]; //############\\ // dateformat:\\ $thedate = "$day/$month/$year - $hour:$min"; //############\\ // NEWS FORMAT $print = "
|
||
| $news |
\n"; } echo"