diff options
author | Andrew Dolgov <[email protected]> | 2005-09-08 13:46:54 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-08 13:46:54 +0100 |
commit | d61fd764f85fc5c0500871dce289521e759214ab (patch) | |
tree | f83ea26379e8e466f56284aaccfaec42c3fac289 /backend.php | |
parent | 090e250b6905ecbc078cdc2f485f343a1d3a7bfc (diff) |
labels now work with MySQL
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backend.php b/backend.php index 71b7d4574..f4928971c 100644 --- a/backend.php +++ b/backend.php @@ -23,7 +23,7 @@ $result = db_query($link, "SELECT count(id) as count FROM ttrss_entries WHERE marked = true"); - $count = pg_fetch_result($result, 0, "count"); + $count = db_fetch_result($result, 0, "count"); print "<label id=\"-1\" counter=\"$count\"/>"; @@ -35,11 +35,11 @@ $id = -$line["id"] - 11; error_reporting (0); - - $tmp_result = pg_query("SELECT count(id) as count FROM ttrss_entries + + $tmp_result = db_query($link, "SELECT count(id) as count FROM ttrss_entries WHERE " . $line["sql_exp"]); - $count = pg_fetch_result($tmp_result, 0, "count"); + $count = db_fetch_result($tmp_result, 0, "count"); print "<feed id=\"$id\" counter=\"$count\"/>"; @@ -97,10 +97,10 @@ error_reporting (0); - $tmp_result = pg_query("SELECT count(id) as count FROM ttrss_entries + $tmp_result = db_query($link, "SELECT count(id) as count FROM ttrss_entries WHERE " . $line["sql_exp"]); - $count = pg_fetch_result($tmp_result, 0, "count"); + $count = db_fetch_result($tmp_result, 0, "count"); error_reporting (E_ERROR | E_WARNING | E_PARSE); |