I have been trying to get pages that the address are:

example.com/forum/forum.php?t=3

I have been looking at tutorials and I have found stuff, but I don't quite get how it works and where to put the code that executes to make dynamic URLs.

Help or other tutorials would be great.
Thanks in advance,
W3C