Jump to content

[SOLVED] SELECT command denied to user


EchoFool

Recommended Posts

I just been working on a site for months with no problems then suddenly i made a query with an inner join and this is not the first inner join i have ever used on the site and it keeps giving me:

SELECT command denied to user

 

Yet its only one this one specific query, additionally the syntax is perfectly correct, what does it mean? I don't know why it won't allow it.

 

Hope you can help.

Link to comment
Share on other sites

<?php
$Get = mysql_query("SELECT user_m.Quantity FROM user_m INNER JOIN user.c
		ON user_m.UserID = user_c.UserID WHERE user_c.SID='{$row['StateID']}' AND user_m.MID='{$row2['MID']}'")
Or die(mysql_error());
?>

 

Here you go,

 

Its only this query which is what i find odd. All my other queries are allowed yet this one is denied.. I checked with my hosts and they say i have full permissions to my database so its not my server permissions.

Link to comment
Share on other sites

What do you mean by user though ? My usual login account for the site or my server user?

 

All other select queries are working on the site its just this one particular query where it goes wrong...but how can check that the simpler SELECTS work ? I mean the whole site works bar this one script which im guessing would leave to suggest it does work ?

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.