[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 05-16-2006, 03:43 AM   #1 (permalink)
NamePros Regular
 
Join Date: Apr 2006
Posts: 282
70.00 NP$ (Donate)

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
__________________
http://www.TalkDamages.com - Come Join the Community for the new hit FX TV SHOW.
Falian is offline  
Old 05-16-2006, 03:48 AM   #2 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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
weblord is offline  
Old 05-16-2006, 08:28 AM   #3 (permalink)
Senior Member
 
Xyzer's Avatar
 
Join Date: Aug 2005
Location: United Kindom
Posts: 1,506
90.70 NP$ (Donate)

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 all

Tsunami Relief AIDS/HIV
Hehe Weblord Ive been saying this alot recently.
Xyzer is offline  
Old 05-16-2006, 08:53 AM   #4 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

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, 09:38 AM   #5 (permalink)
Senior Member
 
Xyzer's Avatar
 
Join Date: Aug 2005
Location: United Kindom
Posts: 1,506
90.70 NP$ (Donate)

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 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, 10:08 AM   #6 (permalink)
NamePros Regular
 
Join Date: Apr 2006
Posts: 282
70.00 NP$ (Donate)

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.
__________________
http://www.TalkDamages.com - Come Join the Community for the new hit FX TV SHOW.
Falian is offline  
Old 05-16-2006, 10:19 AM   #7 (permalink)
Senior Member
 
Xyzer's Avatar
 
Join Date: Aug 2005
Location: United Kindom
Posts: 1,506
90.70 NP$ (Donate)

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 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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:31 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85