Well, if you are more specific as to where you are having trouble in your scripts, then I can help.
If you haven't begun writing anything and don't know where to start, then I suggest reading the intro to PHP and mysql tutorials.
A brief overview of your script will be something like this:
submit.php:
- connect to mysql
- strip illegal chars from the submitted url
- check for validity (a simple fopen will tell you if it exists -- make sure you trap 404 errors)
- add the entry to the db
- print a thank you message
search.php
- connect to db
- get the query to search for
- parse out illegal chars and add slashes to your query
- use a SELECT statement and LIKE to match URLs in the DB
- print the rows from the resulting resource
if you don't want to code it, i'm pretty sure there are a lot of add-a-link PHPs out there. Try zend.com, hotscripts.com, or php.resourceindex.com.
-sridhar