Sorry Thorpe, I haven't tried your suggestion yet. When thepeccavi suggestion didn't work I tried rewritting from another angle and just returned to see your post. After a couple of hundred attempts I came up with this (works beautifuly):
<?php
include 'opendb.php';
$query = mysql_query("SELECT * FROM Users");
mysql_close();
// if > 0 rows are returned
if(mysql_num_rows($query))
{
while ($row = mysql_fetch_array($query))
{ //table layout for results
echo '<a href="' . 'http://www.mysite.net/' . 'edit.php?UID=' . $row['UID'] . '">' . $row['UID'] . '</a>' . '<br />';
}
}
?>
Very similar to what you suggested, but for some reason if I tried this:
echo '<td><a href="http://www.mysite.net/edit.php?UID='.$row['UID']. etc..
It only linked to http://www.mysite.net/ , strange but true!
Anyway Thanks to everyone for helping out a noob! Will call this one resolved!
Steve