1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

basic functionality pass 4

This commit is contained in:
Andrew Dolgov
2005-08-21 17:16:41 +01:00
parent 40d13c2836
commit ac53063ab9
6 changed files with 76 additions and 12 deletions

View File

@@ -74,13 +74,17 @@
$md5_hash = pg_fetch_result($result, 0, "md5_hash");
if ($md5_hash != $content_md5)
$unread = "false";
$unread = "true";
if ($unread) {
$updated_query_part = "updated = '$entry_timestamp',";
}
$query = "UPDATE ttrss_entries
SET
title ='$entry_title',
link = '$entry_link',
updated = '$entry_timestamp',
$updated_query_part
content = '$entry_content',
md5_hash = '$content_md5',
unread = '$unread'
@@ -90,8 +94,8 @@
$result = pg_query($link, $query);
// print "$entry_guid - $entry_timestamp - $entry_title -
// $entry_link - $entry_id<br>";
// print "$entry_guid - $entry_timestamp - $entry_title -
// $entry_link - $entry_id<br>";
}