pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Set column `title` as primary key or unique index.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Something like this will insert a new title, or update an existing one with newer additional columns (if that is what you want).
mysql_query("
INSERT INTO data VALUES ('$title', '$link', '$description', '$date')
ON DUPLICATE KEY UPDATE link = '$link', description = '$description', date = '$date'
");
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875