Jump to content

PHP MYSQL issue


optikalefx

Recommended Posts

I have a bunch of mysql queries set up.  They all worked fine, but i needed my info to connect to be moved above the web root so they are safe.  First i set up a constants.php file that defines a bunch of constants.  That works just fine.  and the code to get to that file is

 

require_once constants.php

 

So i moved the constants file to root, which is 2 above where these are.  So i changed it to

require_once ../../constants.php

 

Im able to echo the constants and get there info but mysql fails

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user '****'@'****' (using password: YES) in /hermes/web04/b1609/pow.4ten/htdocs/paypal/newuser.php on line 66

Access denied for user '****'@'****' (using password: YES)

 

And im not sure what cgi1204.int.bizland.net is.  Im not using that anywhere. As far as i know. line 66 is just my connect query

 

mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());

 

Any idea what could be going on?  Thanks guys

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.