Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Version 1.x
:
Error Template If Duplicate Link?
Previous Thread
Next Thread
Print Thread
View Threaded
Jul 15, 2000, 12:08 PM
Canucks
User
(172 posts)
Jul 15, 2000, 12:08 PM
Post #1 of 3
Views: 1634
Shortcut
Error Template If Duplicate Link?
When people submit links, is it possible to have the script check the DB for the URL and then spit out an error page if it is a duplicate, from an add_duplicate_error.html template or something?
Thanks.
Jul 15, 2000, 3:57 PM
pugdog
Veteran
/ Moderator
(6956 posts)
Jul 15, 2000, 3:57 PM
Post #2 of 3
Views: 1583
Shortcut
Re: Error Template If Duplicate Link?
In reply to
You can modify the script to do a SELECT FROM Links _and_ a SELECT from Validate (remember, the link could already be added, waiting for validation).
You would pass in the url, and see if you had a match.
You might want to do a partial select on the domain name, to see if a partial match is there -- such as '/' or a '/index.html' etc.
But, the short answer is "yes" it can be done.
http://www.postcards.com
FAQ:
http://www.postcards.com/FAQ/LinkSQL/
Jul 16, 2000, 5:16 PM
Canucks
User
(172 posts)
Jul 16, 2000, 5:16 PM
Post #3 of 3
Views: 1568
Shortcut
Re: Error Template If Duplicate Link?
In reply to
Thanks Pugdog.
Can you point me to any specific coding that I would need to edit within my current files?
Previous Thread
Next Thread
Print Thread
View Threaded