From f07c0eb4fa8fd413bd2c5419aa9b21fada38b530 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Aug 2005 15:47:46 +0100 Subject: improved article look --- backend.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 8e0eeb007..6529c6b39 100644 --- a/backend.php +++ b/backend.php @@ -5,8 +5,17 @@ require_once "functions.php"; require_once "magpierss/rss_fetch.inc"; + error_reporting(0); + $link = pg_connect(DB_CONN); + error_reporting (E_ERROR | E_WARNING | E_PARSE); + + if (!$link) { + print "Could not connect to database. Please check local configuration."; + return; + } + pg_query("set client_encoding = 'utf-8'"); $op = $_GET["op"]; @@ -131,15 +140,23 @@ $line = pg_fetch_assoc($result); - print ""; +/* print "
"; print ""; print ""; - print "
Title:".$line["title"]."
Link:".$line["link"]."
"; - print $line["content"]; + print $line["content"]; */ + print ""; + print " + "; + + print " + "; + + print ""; + print "
Title:".$line["title"]."
Link:".$line["link"]."
" . $line["content"] . "
"; } } -- cgit v1.2.3