php devel is much easier without cvs

This commit is contained in:
Dan Olson 2000-06-16 03:52:49 +00:00
parent 333726c232
commit 938a9d1758

View file

@ -3,15 +3,15 @@
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
if ($conn) {
$query = 'SELECT p_date, p_user, p_news FROM devel_plans' .
$query = 'SELECT p_date, p_user, p_plan FROM devel_plans' .
' ORDER BY p_date DESC';
$result = @mysql_db_query (sqlDB, $query, $conn);
if ($result) {
$numRows = @mysql_num_rows ($result);
if ($numRows) {
for ($i = 0 ; $i < $numRows ; $i++) {
list ($p_date, $p_user, $p_news) = mysql_fetch_row ($result);
newsItem (dateFromSQLDateTime ($p_date), $p_user, StripSlashes($p_news));
list ($p_date, $p_user, $p_plan) = mysql_fetch_row ($result);
newsItem (dateFromSQLDateTime ($p_date), $p_user, StripSlashes($p_plan));
}
} else {
newsItem ('now', 'Web Server', '<P>No current news!');