|
| |
|
|
echo " ";
echo "";
?>
|
| |
| |
echo $content." "; ?> |
| |
Created By : echo $created_by." "; ?> |
| Date :
echo $creation_date;
//echo " ""
";
?> |
| |
if ($privileges != 1) { //lempar ke index
?>
| |
} ?>
|
if ($privileges != 1) { ?>
} ?> |
| |
| |
$rowsPerPage = 5;
$pageNum = 1;
if(isset($_GET['page']))
{
$pageNum = $_GET['page'];
}
$offset = ($pageNum - 1) * $rowsPerPage;
$sqlx=mysql_query("SELECT * FROM table_news order by creation_date desc LIMIT $offset, $rowsPerPage");
$row=mysql_num_rows($sqlx);
$b=0;
while($row=mysql_fetch_array($sqlx))
{
$id_news = $row[id_news];
$title = $row[title];
$description = $row[description];
$content = $row[content];
$creation_date = $row[creation_date];
$created_by = $row[created_by];
?>
} ?>
|
|