$db = mysql_connect ( "localhost", "eco", "Avers" ) ;
mysql_select_db ( "ecolife" ) ;
$sth = "SELECT ndate, header, body FROM eco_news WHERE id=$id" ;
$sth = mysql_query ( $sth ) ;
while ( $row = mysql_fetch_row( $sth ) )
{
print ( "" ) ;
printf( "Дата: [%s]\n %s | ",
$row[0], $row[1] ) ;
printf( " %s | " , $row[2] ) ;
printf ( 'Архив новостей | ' ) ;
print ( " " ) ;
}
?>
|