mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-30 16:01:24 +00:00
news stuff...
This commit is contained in:
parent
927f37abfc
commit
0ad9e63a6a
2 changed files with 2 additions and 1 deletions
2
news.php
2
news.php
|
@ -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 (); ?>
|
||||||
|
|
|
@ -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)" .
|
||||||
|
|
Loading…
Reference in a new issue