Page 1 of 1

loding page works on test server but not on hosts

Posted: Sat Feb 26, 2011 4:43 pm
by gasspark
Hi

I have been coding in dreamweaver a login page for my site, it works great on the test server but if I upload it to my sites host server well it shows a fault,

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/jhsrepa1/public_html/login.php on line 5
Access denied for user 'root'@'localhost' (using password: NO)

My host is justhost
the script is php

Any help would be great

Thanks in advance

Re: lodin page works on test sever but not on hosts

Posted: Sat Feb 26, 2011 6:06 pm
by kellys_eye
Does your host support SQL/php coding - not all do. You may have to pay extra for the facility. Chuck up a simple HTML page and see if you can access it.

Re: loding page works on test server but not on hosts

Posted: Sat Feb 26, 2011 6:09 pm
by gasspark
should of said the register page works fine with the same details: so the php works fine there but can use the login for some reason