news stuff...

This commit is contained in:
Jeff Teunissen 2000-06-17 11:41:12 +00:00
parent 927f37abfc
commit 0ad9e63a6a
2 changed files with 2 additions and 1 deletions

View file

@ -6,7 +6,7 @@
<? <?
require("news_funcs.php"); require("news_funcs.php");
?> ?>
<TABLE cellSpacing="2" cellPadding="0" border="0"> <TABLE width="50%" cellSpacing="2" cellPadding="0" border="0">
<TR vAlign="top"> <TR vAlign="top">
<TD align="center"> <TD align="center">
<? monthForm (); ?> <? monthForm (); ?>

View file

@ -101,6 +101,7 @@
need('date sql'); need('date sql');
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass); $conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
echo sqlHost . sqlUser . $conn;
if ($conn) { if ($conn) {
$query = 'SELECT n_date, n_user, n_news FROM news_main' . $query = 'SELECT n_date, n_user, n_news FROM news_main' .
" WHERE n_date > DATE_SUB(NOW(), INTERVAL $length)" . " WHERE n_date > DATE_SUB(NOW(), INTERVAL $length)" .