rainprop Posted March 9, 2010 Share Posted March 9, 2010 hello, im new to this php thing..therefore, im trying hard to understand it. i need some help regarding an error.. hope anyone cn help me on this. i was given task to create a web-based payroll system, and he said that we need to use phpmyadmin, wampserver, and dremweaver to create it. b4 this i tried a different method, but my lecturer rejected it. so i have to redo my system. i wanna create a login pagem but the error that came was Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'SYSTEM'@'localhost' (using password: NO) in C:\wamp\www\login-exec.php on line 15 Failed to connect to server: Access denied for user 'SYSTEM'@'localhost' (using password: NO) i had this code written. i guess im wrong. so can anyone help me fix it?? //Connect to mysql server $link = mysql_connect('localhost'); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } I AM NOT AN Information Technology STUDENT.. im an accounting student.. pls teach me. i rely don know how to do this..im so lost right now. i've tried all i could. Thanks Link to comment Share on other sites More sharing options...
schilly Posted March 9, 2010 Share Posted March 9, 2010 you need to provide mysql_connect with a username and password. see www.php.net/mysql_connect. $link = mysql_connect('localhost',$user,$password); Link to comment Share on other sites More sharing options...
rainprop Posted March 9, 2010 Author Share Posted March 9, 2010 but i do not have a password..so how do i get it?? Link to comment Share on other sites More sharing options...
aeroswat Posted March 9, 2010 Share Posted March 9, 2010 Please stop reposting the same thing. You only need one post to get your problem solved. Link to comment Share on other sites More sharing options...
Recommended Posts