Php server / mysql module error

I am using php 5.2, mysql and apache 2.2 on windows vista

When I try to add a database connection I get this error:

‘Your PHP server doesn’t have the MySQL module loaded or you can’t use the mysql_(p)connect functions.’

I added these to php.ini:
extension = php_mysql.dll
extension = php_mysqli.dll