PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 24th, 2000, 11:45 PM
conrad conrad is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: killington,vt,usa
Posts: 1 conrad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
When using submitform.php3, the MYSQL connection fails. I am denied access ...the line in question is the following..mysql_connect (localhost,username,password) I have inserted my username and password without quotes. Should I be filling something into the localhost area.

Reply With Quote
  #2  
Old January 24th, 2000, 11:49 PM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
host, username and password should ALL be in quotes, unless you are using variables to pass them to the function.

Reply With Quote
  #3  
Old January 26th, 2000, 06:13 PM
dweb dweb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Miami, FL, USA
Posts: 1 dweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dweb
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by rod k:
host, username and password should ALL be in quotes, unless you are using variables to pass them to the function.[/quote]

Where do I go to see what my host_server name, username. password is??

I am new to php and to test it out I installed a script on my server. I go to the browser and point is to the admin index file. This is what I get;

Warning: Unknown MySQL Server Host (dweb) (0) in lib.inc.php3 on line 124

The original script came with "localhost" but that wasn't working either. Where should I look for the MySQL server host info? Shoul I also set up a username and password while there? How?

Thank you for any help?



------------------
Distributors Web
Get Real.....Go Virtual!
http://distributorsweb.com/sig

Reply With Quote
  #4  
Old January 26th, 2000, 06:37 PM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
Where is mysql located? If you have a host, they will tell you what your username and password are. If you set it up yourself then you have to create permissions and assign a username and password. See GRANT in the mysql manual. If localhost isn't working it means that you are running php and mysql on different machines. If so, you need to give the URL or IP address of the machine that mysql is on. Note also that you have to have permission to connect from a particular machine.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > localhost ?


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 3 hosted by Hostway
Stay green...Green IT