You use the echo/concatenate command.
Such as,
$link = "http://forum.example.com/index.php?showuser=" + $row['id'];
Then you use it wherever you want...by echoing/printing it.
Maybe...
Code:
<a href="http://forum.example.com/index.php?showuser=<?= $row['id'] ?>">View your forum CP</a>