fomalhaut
Member
- Messages
- 107
- Reaction score
- 0
- Points
- 16
hello !
I've some problem using the mysql_connect function :nuts:.
This is the beginning of my script, that works fine on my own computer :
<?php
$con = mysql_connect("localhost:3306");
$db = "usr_ayantdroit";
if (!$con) {die('Connection impossible : ' . mysql_error());}
mysql_select_db($db, $con);
but it doesn't work on x10, bellow the error message :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'usr'@'localhost' (using password: NO) in /home/usr/public_html/ident.php on line 4
Connection impossible : Access denied for user 'usr'@'localhost' (using password: NO)
line 4 is : $con = mysql_connect("localhost:3306"); (the second line above).
I presume either localhost:3306 is to be replaced... by what ? ; or I must declare something in phpmyadmin or in mysql ? But I don't know what exactly.
Does anyone can help me please ?
Thanks.
I've some problem using the mysql_connect function :nuts:.
This is the beginning of my script, that works fine on my own computer :
<?php
$con = mysql_connect("localhost:3306");
$db = "usr_ayantdroit";
if (!$con) {die('Connection impossible : ' . mysql_error());}
mysql_select_db($db, $con);
but it doesn't work on x10, bellow the error message :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'usr'@'localhost' (using password: NO) in /home/usr/public_html/ident.php on line 4
Connection impossible : Access denied for user 'usr'@'localhost' (using password: NO)
line 4 is : $con = mysql_connect("localhost:3306"); (the second line above).
I presume either localhost:3306 is to be replaced... by what ? ; or I must declare something in phpmyadmin or in mysql ? But I don't know what exactly.
Does anyone can help me please ?
Thanks.