mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-27 22:42:57 +00:00
I'm hoping the real problem just goes away... as
sometimes happens
This commit is contained in:
parent
96ebaa59ad
commit
09d883e0a0
1 changed files with 3 additions and 4 deletions
|
@ -4,21 +4,20 @@
|
||||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||||
if ($conn) {
|
if ($conn) {
|
||||||
$query = 'SELECT p_date, p_user, p_plan FROM devel_plans' .
|
$query = 'SELECT p_date, p_user, p_plan FROM devel_plans' .
|
||||||
'ORDER BY p_date DESC, p_user';
|
'WHERE p_plan != 'None' ORDER BY p_date DESC, p_user';
|
||||||
$result = @mysql_db_query (sqlDB, $query, $conn);
|
$result = @mysql_db_query (sqlDB, $query, $conn);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$numRows = @mysql_num_rows ($result);
|
$numRows = @mysql_num_rows ($result);
|
||||||
if ($numRows) {
|
if ($numRows) {
|
||||||
for ($i = 0 ; $i < $numRows ; $i++) {
|
for ($i = 0 ; $i < $numRows ; $i++) {
|
||||||
list ($p_date, $p_user, $p_plan) = mysql_fetch_row ($result);
|
list ($p_date, $p_user, $p_plan) = mysql_fetch_row ($result);
|
||||||
// if ($p_plan != "None")
|
|
||||||
newsItem (dateFromSQLDateTime ($p_date), ucfirst($p_user), StripSlashes($p_plan));
|
newsItem (dateFromSQLDateTime ($p_date), ucfirst($p_user), StripSlashes($p_plan));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
newsItem ('now', 'Web Server', '<P>No current news!');
|
newsItem ('now', 'Web Server', '<P>An error occoured, please contact the webmaster');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
newsItem ('now', 'Web Server', '<P>No plans in database!');
|
newsItem ('now', 'Web Server', '<P>Can't find any plans! Please contact the webmaster');
|
||||||
}
|
}
|
||||||
mysql_close ($conn);
|
mysql_close ($conn);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue