$username Posted October 3, 2007 Share Posted October 3, 2007 Hello PHP guys, Here is a new one I dont understand why the is not working. Here are the errors Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in line 51 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in line 51 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in line 57 Here are those lines. $query=("SELECT * FROM userlogin ORDER BY `ID` DESC LIMIT 0,80"); mysql_query($query); Thank you, Brett Quote Link to comment https://forums.phpfreaks.com/topic/71606-solved-getting-error-warning-mysql_query-functionmysql-query-access-denied/ Share on other sites More sharing options...
pocobueno1388 Posted October 3, 2007 Share Posted October 3, 2007 Your connection to the database isn't working...double check you information. Quote Link to comment https://forums.phpfreaks.com/topic/71606-solved-getting-error-warning-mysql_query-functionmysql-query-access-denied/#findComment-360525 Share on other sites More sharing options...
$username Posted October 3, 2007 Author Share Posted October 3, 2007 well its to weird that it works for all my other stuff. I use a single connection file called DBOPEN.php. This works for everything else. I will try some other stuff. Brett Quote Link to comment https://forums.phpfreaks.com/topic/71606-solved-getting-error-warning-mysql_query-functionmysql-query-access-denied/#findComment-360527 Share on other sites More sharing options...
$username Posted October 3, 2007 Author Share Posted October 3, 2007 After looking in to it. It looks to me an issue with PHP5 and MYSQL5. I was able to get it to work fine with version 4 of both. If some one knows how to fix please advise. Thank you, Brett Quote Link to comment https://forums.phpfreaks.com/topic/71606-solved-getting-error-warning-mysql_query-functionmysql-query-access-denied/#findComment-360589 Share on other sites More sharing options...
sKunKbad Posted October 3, 2007 Share Posted October 3, 2007 I think a lot of times hosts have little tips regarding database hook-up, and you might check with your host. Post your connection script and let us take a look at it... minus the real password and username of course. Quote Link to comment https://forums.phpfreaks.com/topic/71606-solved-getting-error-warning-mysql_query-functionmysql-query-access-denied/#findComment-360592 Share on other sites More sharing options...
$username Posted October 4, 2007 Author Share Posted October 4, 2007 After a reinstall of the 3 goods AMP I have this working now. When people say your best just installing them all on their own. They are right. It works better then programs that have them packaged. (WAMP, PHPeasy) Thanks, Brett Quote Link to comment https://forums.phpfreaks.com/topic/71606-solved-getting-error-warning-mysql_query-functionmysql-query-access-denied/#findComment-361343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.