NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PhP error in site

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-16-2006, 04:43 AM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Apr 2006
Posts: 300
Falian is on a distinguished road
 



PhP error in site


I get this when i try to connect to my site

Warning: mysql_connect(): Access denied for user: 'nobody@localhost' (Using password: NO) in /home/boom3/public_html/includes/connect.inc.php on line 12
Falian is offline  
Old 05-16-2006, 04:48 AM   #2 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
the user you specified is not priveleged to use the database and/or you forgot the username_ before your actual db username and db password. solution: give the user access to the database you assigned to it and name your dbname/dbusername with this cpanelusername_databasename and cpanelusername_databaseusername
__________________
Nabaza.com - Amaia
weblord is offline  
Old 05-16-2006, 09:28 AM   #3 (permalink)
Senior Member
 
Xyzer's Avatar
Join Date: Aug 2005
Location: United Kindom
Posts: 1,502
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
 


Tsunami Relief AIDS/HIV
Hehe Weblord Ive been saying this alot recently.
Xyzer is offline  
Old 05-16-2006, 09:53 AM   #4 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
yes as weblord suggests it does in favct look like you have not used a username and password at all in the script so it is not using any values at all when connecting (hence why it shows as nobody@localhost)
Peter is offline  
Old 05-16-2006, 10:38 AM   #5 (permalink)
Senior Member
 
Xyzer's Avatar
Join Date: Aug 2005
Location: United Kindom
Posts: 1,502
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
 


Tsunami Relief AIDS/HIV
This code may help just replace the values in caps.
PHP Code:
<?php
$user 
"USER_DBUSERNAME";
$password "PASSWORD";
$databasename "USER_DATABASENAME";
$location "localhost" //You would usually leave this as it is default 99% of the time.
mysql_connect("$location""$user"$password");
mysql_select_db("
$databasename");
?>
Hope this helps, if it does i like rep.
Xyzer is offline  
Old 05-16-2006, 11:08 AM THREAD STARTER               #6 (permalink)
NamePros Regular
Join Date: Apr 2006
Posts: 300
Falian is on a distinguished road
 



Thanks everyone, you all seem very proficient in PhP. I have a very big project that i will need to hire one of you to help me on.
Falian is offline  
Old 05-16-2006, 11:19 AM   #7 (permalink)
Senior Member
 
Xyzer's Avatar
Join Date: Aug 2005
Location: United Kindom
Posts: 1,502
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
 


Tsunami Relief AIDS/HIV
Ok, Thanks, I have sent you a private message regiarding this, did you get it done?
Xyzer is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:10 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger