|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
just another php/sql connection problem
Hello,
I am very new to sql/php but have managed to edit existing script on one site I own with success. I took those existing scripts to my other site (with a different hosting co.) and it doesn't work. All I'm after is a simple login page to be able to give members access to a few private (technical) pages of the website. I took another script from here: URL which I've set up here http://www.masterpianotechnicians.org/login.htm (login 100100 pw abc) and when I use that it gives: error report8 which is in this line below - so, it is not getting anything from the database - because of a connection error? I think. $rowCheck = mysql_num_rows($result) or die ("error report8:<br>" . mysql_error()); Now if I put in the wrong password in for the localhost it gives this error, indicating a connection problem? Warning: mysql_connect(): Access denied for user: 'masterpi_admin@localhost' (Using password: YES) in /home/masterpi/public_html/login.php on line 30 Error connecting to database. I looked here http://dev.mysql.com/doc/mysql/en/Access_denied.html but I dont yet know how to access all those commands like FLUSH and GRANT etc. My question, I only have access to my site using cPanel and phpmyadmin how to do you check that a connection is working and it is a site problem or hosting co. problem? Thanks |
|
#2
|
||||
|
||||
|
Just send your ISP a support query asking them what you should use as your username, password, and hostname. Often, you can connect to mysql.xxx.com but not to localhost, for example.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > just another php/sql connection problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|