El código del que hablo que ya existía es:
www.forosdelweb.com/showthread.php?t=344041
Me sale este error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'USUARIO'@'localhost' (using password: YES) in /home/index.php on line 144
I cannot connect to the database because: Access denied for user 'USUARIO'@'localhost' (using password: YES)