+2  A: 

No problem. This is possible.
what is your problem with the above code?

Edit As Chad said, the above code is not working because you named to __construct() as __constructor(). See http://nl3.php.net/oop5.magic

Pim Jager
nah it dont work! http://www.homestansted.co.uk/te.php?pid=4ga44
A: 

You can do that no problem. The biggest question is: should you do that? Some might argue that you should pass the $_GET value in rather than getting it directly.

cletus
yeah i hear you but i want the class to be self contained.
+3  A: 

If it's not working, it's probably because you've named the function

__constructor()

when the correct name is

__construct()
Chad Birch
sorry, thats comming from a c++ background..
Did this solve your problem? If it did, please accept this is your answer.
Pim Jager