New to this! What the hell is my "localhost" with

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
beefsister
Forum Newbie
Posts: 2
Joined: Tue Mar 16, 2004 1:44 am

New to this! What the hell is my "localhost" with

Post by beefsister »

Anyone wanna tell me what I am doing wrong? I am very new to php, and would like to know why I am receiving this error:

http://www.founditforme.com/time.php

Here is a link to the script that I'd used...

http://foundit.web.aplus.net/phphelp.html


any help would be wonderful!
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Access denied for user: 'foundit@localhost' (Using password: YES)

That's about it, the user foundit has no access to the mysql database using the password you supplied.
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

markl999 wrote:Access denied for user: 'foundit@localhost' (Using password: YES)

That's about it, the user foundit has no access to the mysql database using the password you supplied.
I think you need to post the code you're using. MySQL installs with a user named "root" that has a blank password, I believe. So whereever you have "foundit" as a user, maybe change it to root, and wherever you have YES as a password, change it to "".

Just shooting blind though. If that doesn't work, please post your code.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

could just be that in that line 3 its asking for a password to connect to youre mysql, and that in youre config you might have deleted that line wich says

Code: Select all

$password = '' ;
if you have done that it will also give you that error.

if you do not have a password set, just leave it blank

but like TheBentinel said its all guessing without the connection code and the lines 1 untill 4 of the error
Post Reply