Ik heb totaal geen verstand van hoe je connectie maakt met een database maar zo werkt het niet:
De foutcode:
Quote:
Warning: mysql_connect(): Access denied for user sevenft@localhost (using password: NO) in /home/sevenft/domains/sander.s2.one2xs.com/public_html/TCGfiles/system/db_conn.php on line 7
Check the database connection.
Bedankt voor de gene die me helpt.
Je krijgt als beloning ook een koekje
[COLOR= #0000BB]<?php
$server[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"gaatjenietaan"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$pass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"zekerniet"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"ookniet"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$db1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL] [COLOR= #007700]()[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Check the database connection."[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL] [COLOR= #007700]()[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Check the database connection."[/COLOR][COLOR= #007700]);[/COLOR]
?> De foutcode:
Quote:
Warning: mysql_connect(): Access denied for user sevenft@localhost (using password: NO) in /home/sevenft/domains/sander.s2.one2xs.com/public_html/TCGfiles/system/db_conn.php on line 7
Check the database connection.
Bedankt voor de gene die me helpt.
Je krijgt als beloning ook een koekje



