Ik heb een probleem ik krijg dit:
Warning: mysql_connect(): Access denied for user 'u812042148_rdp'@'10.1.2.16' (using password: YES) in /home/u601366954/public_html/V1/inc/djzegt.php on line 2
Warning: mysql_select_db(): Access denied for user 'root'@'localhost' (using password: NO) in /home/u601366954/public_html/V1/inc/djzegt.php on line 3
Warning: mysql_select_db(): A link to the server could not be established in /home/u601366954/public_html/V1/inc/djzegt.php on line 3
Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in /home/u601366954/public_html/V1/inc/djzegt.php on line 6
Warning: mysql_query(): A link to the server could not be established in /home/u601366954/public_html/V1/inc/djzegt.php on line 6
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/u601366954/public_html/V1/inc/djzegt.php on line 7
Bij deze code:
<?php
mysql_connect("mysql.bumhosting.net",'u812042148_rdp','*');
mysql_select_db("u812042148_rdp");
$opdracht = "SELECT bericht FROM dj_zegt";
$result = mysql_query($opdracht);
$rij = mysql_fetch_assoc($result);
echo $rij['bericht'];
?>
Hoe kan dat? Ik heb toch alles goed gedaan?
Gr Tim
1.948 views