Replace the links with a link that points to your PHP script, and pass the ID of the URL as it is in the database. Using that ID, you can then redirect to the link in question.
pritaeas
Posting Prodigy
9,310 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86