ok first q
mysql_select_db("dafsplace");
$link_visited = mysql_query("SELECT link_visited FROM dp_links WHERE link_id=$l")
or die ("its dead jim, but not as we know it");
//$link_visited is just a resource - a pointer to a result, so this won't give what you want
echo $link_visited;
//you have to fetch the row as an associative array
//associative just means the keys int the array ($array[key]) will be the field names, not a sequential number
$links = mysql_fetch_assoc($link_visited);
//then you have the array $links, containing keys 'link_id', 'link_desc' etc
nb this will only return one row - to fetch all, use a while loop like in my previous post
q2 - from the above code, you can now create an array
i am not great at creating arrays in one, but step by step you'd do it like this
//remember this follows on from above code
$link_array[$links['link_id']] = $links['desc'];
hope that helps?