hi,
what your basically looking at here in this script is a database, and a header function
$sql = "SELECT * from url_table where id='".$_GET[linkid]."'";
$query = mysql_query($sql) or die("error");
$rows = mysql_num_rows($query);
if ($rows < 1) {
echo "could not select url";
}
else {
$row = $mysql_fetch_array($query);
header('Location: ' . $row[url]);
}
something like that