website/see_plans.php

27 lines
962 B
PHP
Raw Normal View History

2000-06-16 03:47:08 +00:00
<?
need('date sql');
2000-06-16 20:26:48 +00:00
2000-06-16 03:47:08 +00:00
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
if ($conn) {
2000-06-16 20:33:04 +00:00
$query = 'SELECT p_date, p_user, p_plan FROM devel_plans ' .
2000-06-16 20:22:59 +00:00
'WHERE p_plan != \'None\' ORDER BY p_date DESC, p_user';
2000-06-16 03:47:08 +00:00
$result = @mysql_db_query (sqlDB, $query, $conn);
if ($result) {
$numRows = @mysql_num_rows ($result);
if ($numRows) {
for ($i = 0 ; $i < $numRows ; $i++) {
2000-06-16 03:52:49 +00:00
list ($p_date, $p_user, $p_plan) = mysql_fetch_row ($result);
2000-06-16 03:56:01 +00:00
newsItem (dateFromSQLDateTime ($p_date), ucfirst($p_user), StripSlashes($p_plan));
2000-06-16 03:47:08 +00:00
}
} else {
newsItem ('now', 'Web Server', '<P>An error occoured, please contact the webmaster');
2000-06-16 03:47:08 +00:00
}
} else {
2000-06-16 20:09:30 +00:00
newsItem ('now', 'Web Server', '<P>Can\'t find any plans! Please contact the webmaster');
2000-06-16 03:47:08 +00:00
}
mysql_close ($conn);
} else {
newsItem ('Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch plans. Please notify the server administrator.');
}
?>