"); printf("
 "); $publish_date = formatdate(0, 0); printf("

%s

\n", $publish_date); $query = sprintf("select * from bnw_articles where new_until >= '%s' order by volumeid desc, pub_date desc", date("Y-m-d")); $result = mysql_query($query) or die("3i There has been an error accessing the database. Please try again later. \n\n"); $numnew = mysql_num_rows($result); if(mysql_error() <> "") { $numnew = 0; } for ($i=0; $i < $numnew; $i++) { if(!mysql_data_seek ($result, $i)) { printf ("Error seeking row %d", $i); continue; } if(!($row=mysql_fetch_object($result))) { printf("Error fetching object %d", $i); continue; } printf("

%s\n", getarticleinfo($row->articleid, 1, 1, 1, 1)); printf("

"); printsuprefs(0, $row->articleid, 0); printf("

\n"); } $query = sprintf("select * from bnw_articles where new_until < \"%s\" order by pub_date desc", date("Y-m-d")); $result = mysql_query($query) or die("3i There has been an error accessing the database. Please try again later. \n\n"); $numnew = 3 - $numnew; for ($i=0; $i < $numnew; $i++) { if(!mysql_data_seek ($result, $i)) { printf ("Error seeking row %d", $i); continue; } if(!($row=mysql_fetch_object($result))) { printf("Error fetching object %d", $i); continue; } printf("

%s\n", getarticleinfo($row->articleid, 1, 1, 1, 1)); printf("

"); printsuprefs(0, $row->articleid, 0); printf("

\n"); } printf("

 

\n"); printf("
\n"); require("_includes/footer.inc"); ?>