Jump to content

error


spearchilduser

Recommended Posts

im getting a error i havent gotten since i started learnign php so i feel a bit stupid now

btu its

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in E:\students\08023190\dancomp\detailschange.php on line 19

 

the code its refering to is:

19 $query = "SELECT * FROM customer WHERE username = '$username'";
20 echo $query;
21 $result1 = mysql_query($query);
22 $goo = $result;

 

echo query just prints out the select statement and the $result prints out nothing

 

The tables and attributes are spelt exaxctly as they are in the table

 

and the database connection is ok as theres one connection in a include file and it works for every other page

Link to comment
https://forums.phpfreaks.com/topic/259678-error/
Share on other sites

Something tells me that your earlier 'white screen' thread and this one are for the same code and same problem, but this one differs in that you turned on error_reporting/display_errors so that you could see the error that was occurring at the msyql_query statement.

Link to comment
https://forums.phpfreaks.com/topic/259678-error/#findComment-1330951
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.