while (list(id, $link) = @mysql_fetch_row($result))
list(id, $link)
id değilde $id olması gerekmiyor mu?