| 
	
 | 
 Posted by dude on 06/18/06 06:11 
this is the code: 
 
$user = "user"; 
$pass = ""; 
$connect = mysql_connect('localhost',$user,$pass); 
	or die('could not connect: '. mysql_error()); 
 
mysql_close($connect); 
 
i'm a beginer, and i just want to see if i could connect to server. 
on pypmyadmin i set the following for the user@localhost: 
 
password: No 
global privileges: all privileges 
grant: yes ... 
 
and ofcourse i get the warning: mysql_connect()function.mysql-connect]:  
Access denied for user 'user'@'localhost' error on the connect string line. 
 
it has everything, and why doesnt connect string he let me in. 
please help ...
 
  
Navigation:
[Reply to this message] 
 |