|
include ("sql.inc") ;
include ("news_tpl.inc") ; // used for templating the articles
mysql_connect($host,$user,$pw);
$base = mysql_select_db("$db");
mysql_query ("SET CHARACTER SET latin1") ;
$req = mysql_query("SELECT * FROM news ORDER by date DESC") or die (mysql_error()." Couldn't execute query: $req");
// display all infos as fields //
while ( $article = mysql_fetch_array ($req)) {
if ( $article['image'] == "" ) { $article['image'] = " " ; }
else { $article['image'] = "" ; }
make_article($article);
} // end of while
mysql_close () ;
?>
|
|