I don't see anything off the bat. Does a simple mysql_connect('a','b'c') or die(mysql_error()); work?
E.g. without the variable setting (take out $this->connection =) and with INCORRECT user/pass -- you should see the mySQL error. Let's see if that works? If not, there is a problem with your mySQL lib.
If you get the error, replace the correct mysql_connect that you have now, just without the variable setting. If it stops working then obviously it's the $this->connection =
I also notice that you do
not have $connection defined in the class, so maybe you need to add:
private $connection; in your class {} definition.
I'm curious to know about the results of those tests if it's not the simple $connection missing thing
Thanks,
Ben Carroll
http://www.ntertech.com