Thanks for the help guys, i think it's working now but it keeps loading the 404 page "not found".
but when you click the link it does come out as accounts/username so i am getting closer.
i have tried it with the link as:
<a href="profile.php?action={$username}">{$username}</a>
and also
<a href="accounts/{$username}/">{$username}</a>
Forum:
WampServer English