Onbekend |
|
Hallo ik heb dit:
<?php
$server = 'localhost';
$gebruikersnaam = '...';
$wachtwoord = '...';
$database = '...';
mysql_connect("'$server'", "'$gebruikersnaam'", "'$wachtwoord'");
mysql_select_db("'$database'");
?>
<?php $server = 'localhost'; $gebruikersnaam = '...'; $wachtwoord = '...'; $database = '...'; mysql_connect("'$server'", "'$gebruikersnaam'", "'$wachtwoord'"); ?>
Maar dan krijg ik de volgende foutmelding:
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL Server Host ''localhost'' (1) in /home/vhosts/tbsites.nl/httpdocs/mysql/login/config.php on line 7
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/vhosts/tbsites.nl/httpdocs/mysql/login/config.php on line 8
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/vhosts/tbsites.nl/httpdocs/mysql/login/config.php on line 8
|