Jump to content

can anyone help .....


Recommended Posts

guys i am trying to run this script but i am getting this mistake :

[b]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\xampp\htdocs\catalog\includes\functions\database.php on line 19
Unable to connect to database server![/b]

please anyone , tell me what is wrong there pls ,
Link to comment
Share on other sites

[!--quoteo(post=367885:date=Apr 24 2006, 03:56 AM:name=jeremywesselman)--][div class=\'quotetop\']QUOTE(jeremywesselman @ Apr 24 2006, 03:56 AM) [snapback]367885[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Can you give us the code that you are using to connect?

Thx.

[!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--][b]Jeremy[/b][!--colorc--][/span][!--/colorc--]
[/quote]

here's the code
function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {
global $$link;

if (USE_PCONNECT == 'true') {
$$link = mysql_pconnect($server, $username , $password);
} else {
line 19--> $$link = mysql_connect($localhost, $lololo , $password);
}

if ($$link) mysql_select_db($database);

return $$link;
}

so help me guys thx
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.