Page 1 of 1

error Access denied

PostPosted: 07. December 2009 01:43
by squills
hey guys/girls.. I am getting this error only when accessing one table in the database.


Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\RRR\include\bittorrent.php on line 411

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\RRR\include\bittorrent.php on line 411
Access denied for user 'ODBC'@'localhost' (using password: NO)


any other time i try to access the db it works great? any ideals why i would get this error?
thanks
squills

Re: error Access denied

PostPosted: 07. December 2009 01:46
by Wiedmann
I am getting this error only when accessing one table in the database.
Code: Select all
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost'

Your script is connecting without an username to the database.

Re: error Access denied

PostPosted: 07. December 2009 01:55
by squills
why dont i get that error when ever i access the database the other times? How can i set up a username?

Re: error Access denied

PostPosted: 07. December 2009 02:04
by Wiedmann
why dont i get that error when ever i access the database the other times?

Maybe the other times an username is used for the connection?

Re: error Access denied

PostPosted: 07. December 2009 02:33
by squills
all .php files include

require "include/bittorrent.php";

and bittorrent.php includes

require_once("secrets.php");

secrets.php has all the access info.. so should be the same..
would there be any other reason for this error?

Re: error Access denied

PostPosted: 07. December 2009 02:39
by Wiedmann
would there be any other reason for this error?

No.