Hi.. I've been redesigning (kind of) the website of a local hotel in my city which uses PHP to make reservations and to contact the people of the hotel.
I've created a sub folder in the site for testing and showing the client how's everything going on, but I have a problem. The PHP forms give me an unauthorized user error when posting the comments.
A friend of mine told me that just copying the code would work, and that's exactly what I did, but it gives me the error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mlmhotel_xxxxxx'@'localhost' (using password: YES) in /home/mlmhotel/public_html/testing/espanol/commrec.php on line 411
Cannot connect to the database because: Access denied for user 'mlmhotel_xxxxxx'@'localhost' (using password: YES)
The same code works if the form is in it's original position at /public_html/
So my question is: Is it possible that the error it's giving me is because the files is not in the location it's supposed to be? I'm dead here cause I've tried everything that I know of...
Question
Rick Robles
Hi.. I've been redesigning (kind of) the website of a local hotel in my city which uses PHP to make reservations and to contact the people of the hotel.
I've created a sub folder in the site for testing and showing the client how's everything going on, but I have a problem. The PHP forms give me an unauthorized user error when posting the comments.
A friend of mine told me that just copying the code would work, and that's exactly what I did, but it gives me the error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mlmhotel_xxxxxx'@'localhost' (using password: YES) in /home/mlmhotel/public_html/testing/espanol/commrec.php on line 411
Cannot connect to the database because: Access denied for user 'mlmhotel_xxxxxx'@'localhost' (using password: YES)
The same code works if the form is in it's original position at /public_html/
So my question is: Is it possible that the error it's giving me is because the files is not in the location it's supposed to be? I'm dead here cause I've tried everything that I know of...
Thanks
Rick
P.S. Covered the user just in case ;p
Link to comment
Share on other sites
0 answers to this question
Recommended Posts