What type of reflink are you meaning? I guess I don't quite understand what you mean.
Do you wan't a link like this:
http://YourDomain.com/?ref=yourusername
if so you could simply add the following to you code above
<tr><td colspan="2"><a href=\"<? echo SITE_URL."index.php?ref=".$row["username"]; ?>\"><img src="http://i35.tinypic.com/349ciza.jpg" border="0" alt="" /></a></td></tr>
I don't know if this is what you wanted or not, but I would be willing to help.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
Offline 67 posts
since Jun 2008