Check the manual for the differences between echo(), print(), pintf(), and sprintf().
If all you're doing is outputting a link, use echo(). or print() like this:
echo "<a href=\"edit_extURL.php3?urlID=$num&Eurl=$url\">$num</a>";
With echo(), the parens are not required.
--ph