Hi,
Meestal weet ik hier we een oplossing op maar nu doet me mysql wel heel raar. Ik heb de goede gegevens ingevuld en de ingevoerde tabel bestaat maar hij zegt dat ik niet ben verbonden met de database.
Quote:
Warning: mysql_query() [function.mysql-query]: Access denied for user apache@localhost (using password: NO) in /home/shahiem/domains/***/ on line 16
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/shahiem/domains/***/ on line 16
Access denied for user apache@localhost (using password: NO)
Code
Meestal weet ik hier we een oplossing op maar nu doet me mysql wel heel raar. Ik heb de goede gegevens ingevuld en de ingevoerde tabel bestaat maar hij zegt dat ik niet ben verbonden met de database.
Quote:
Warning: mysql_query() [function.mysql-query]: Access denied for user apache@localhost (using password: NO) in /home/shahiem/domains/***/ on line 16
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/shahiem/domains/***/ on line 16
Access denied for user apache@localhost (using password: NO)
Code
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/config.php[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws ORDER BY id DESC LIMIT 5"[/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/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700]->[/COLOR]datum[COLOR= #007700];
}[/COLOR]
?>
Daar zat nog een deel van mijn mysql in.