PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old May 30th, 2004, 09:38 AM
noswal noswal is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 noswal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old June 1st, 2004, 07:17 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > just another php/sql connection problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway