Jump to content


Problem in connecting to Database

  • Please log in to reply
2 replies to this topic

#1 tolearn

  • Members
  • PipPip
  • Member
  • 20 posts

Posted 01 September 2006 - 06:06 AM

Im trying to connect to database using php.But whenever i execuete the file its showing an error
"Could not connect: Access denied for user: 'ODBC@' (Using password: NO) error in php"
What should i do?

#2 redcore

  • New Members
  • Pip
  • Newbie
  • 8 posts
  • LocationCentral California

Posted 14 September 2006 - 03:36 AM

Did you forget your connection entries?

If there was a previous connection on the page, did you close that and then forget to reconnect?

mysql_connect("localhost", "$username", "password") or die(mysql_error()); 
mysql_select_db("$database") or die(mysql_error());

#3 Zane

  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 14 September 2006 - 05:46 AM

This post belongs in the MSSQL Help Forum not in Dreamweaver

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users