wie kan dit script fixen
ik krijg deze error namelijk
Warning: mysql_connect() [function.mysql-connect]: Access denied for user apache@localhost (using password: NO) in /home/voorbeeld/domains/voorbeeld.s2.one2xs.com/public_html/adverteerders/config.php on line 12
Access denied for user apache@localhost (using password: NO)
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]/config.php[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: index[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
[COLOR= #FF8000]// Connection to the database![/COLOR]
[COLOR= #0000BB]$dname[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]voorbeeld_b[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$dpass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]2DOQ7CjC[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]voorbeeld_b[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$voorbeeld_b[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ae1xWYXb[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$db[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$voorbeeld_b[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$link[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_ROOT_[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]http://www.demo.eleky.nl/[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]//Vergeet de / op het eind niet![/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_ROOT2_[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// De extensie voor mails, dus wat er achter de @ moet[/COLOR]
[URL="http://www.php.net/define"]define[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]_NAME_[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]FELS[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// De naam van de site[/COLOR]
?> ik krijg deze error namelijk
Warning: mysql_connect() [function.mysql-connect]: Access denied for user apache@localhost (using password: NO) in /home/voorbeeld/domains/voorbeeld.s2.one2xs.com/public_html/adverteerders/config.php on line 12
Access denied for user apache@localhost (using password: NO)
bedankt sjoerd wil je 0.1 pt?
Was ik even vergeten 
ik heb een probleem ja alweer ik gebruik fels het werkt alleen als ik op inloggen klik staat erbovenin /index.php/register of index.php/inloggen wie kan dit voorm ij oplossen