I want to subscribe a external RSS feed, it with 10 items. and I want to store it into mysql database. When I refresh the page, the database can uptade, the new 10 rss items will replace the older 10.
I tried Insert and REPLACE, but they all insert new one behind the old.
How to do a update? Thanks.
HTML:
require_once ('conn.php');mysql_select_db("my_db", $db);mysql_query("REPLACE INTO rss (link, title, date, content) VALUES ('".$link."', '".$title."', '".$date."', '".$content."')");
I tried Insert and REPLACE, but they all insert new one behind the old.
How to do a update? Thanks.