Jump to content


Photo

$strDBServer =


  • Please log in to reply
1 reply to this topic

#1 foxman

foxman
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 09 June 2006 - 06:27 PM

This is probably rather elementary but how do I call the server? It is not finding the database.

I get

Warning: mysql_connect(): Access denied for user: 'host3_user

not sure how to answer:

$strDBServer =

#2 birdie

birdie
  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts
  • LocationBirmingham UK

Posted 11 June 2006 - 07:35 PM

[!--quoteo(post=381989:date=Jun 9 2006, 07:27 PM:name=foxman)--][div class=\'quotetop\']QUOTE(foxman @ Jun 9 2006, 07:27 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
This is probably rather elementary but how do I call the server? It is not finding the database.

I get

Warning: mysql_connect(): Access denied for user: 'host3_user

not sure how to answer:

$strDBServer =
[/quote]

it is finding the database. thats why it says access denied instead of cannot be found. have u set the mysql_connect defaults in your php.ini file? or is there somewhere for u to set the mysql user/pass to what u need?

mysql_connect("$host","$user","$pass");


$strDBServer is probably the host var. normally you would set it under "localhost" or "999.999.999.999".




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users