loding page works on test server but not on hosts

All your computer hardware and software questions in here please.

Moderator: Moderators

Post Reply
User avatar
gasspark
Senior Member
Posts: 599
Joined: Sun Dec 30, 2007 12:14 pm
Location: Liverpool
Has thanked: 4 times
Been thanked: 37 times

loding page works on test server but not on hosts

Post 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
User avatar
kellys_eye
Senior Member
Posts: 12309
Joined: Mon Mar 15, 2010 11:49 pm
Location: Oban
Has thanked: 357 times
Been thanked: 1790 times

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

Post 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.
Don't take it personally......
User avatar
gasspark
Senior Member
Posts: 599
Joined: Sun Dec 30, 2007 12:14 pm
Location: Liverpool
Has thanked: 4 times
Been thanked: 37 times

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

Post 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
Post Reply

Return to “Computers”