Dimava
Fri 14th Jun '02, 2:25pm
<?php
include("templates/header.htm");
require("admins/config.php");
require("global.php");
include("templates/index/index_start.php");
$front_page_news=$DB_site->query("SELECT id, name, date, username, description, source, image FROM news ORDER BY date DESC, id DESC LIMIT 5");
while( $row = $DB_site->fetch_array($front_page_news) ) {
$newdate2 = chunk_split($date, 2, '.');
$newdate = substr($newdate2, 0, strlen($newdate2)-1);
$description = substr($description, 0, 500);
include("templates/index/news_template.php");
}
include("templates/index/index_end.php");
include("templates/footer.htm");
?>
How Do I extract the variables within the loop
thanks
Dimava
include("templates/header.htm");
require("admins/config.php");
require("global.php");
include("templates/index/index_start.php");
$front_page_news=$DB_site->query("SELECT id, name, date, username, description, source, image FROM news ORDER BY date DESC, id DESC LIMIT 5");
while( $row = $DB_site->fetch_array($front_page_news) ) {
$newdate2 = chunk_split($date, 2, '.');
$newdate = substr($newdate2, 0, strlen($newdate2)-1);
$description = substr($description, 0, 500);
include("templates/index/news_template.php");
}
include("templates/index/index_end.php");
include("templates/footer.htm");
?>
How Do I extract the variables within the loop
thanks
Dimava