Jump to content

SELECT command denied to user


speedblog

Recommended Posts

Hello everyone, I have a mystery problem  :shrug:

 

I have a script run well in my local machine. Everything was okay until I uploaded the scripts into a web hosting. The script supposed to select field in a table. User geekprog_sistem already granted all privilege to the database but it reporting to display.

 

SELECT command denied to user 'geekprog_sistem'@'localhost' for table 'SUBJEK'

 

 

Below is my query

<?php

 

$result = mysql_query ("SELECT * FROM GEEKPROG_MYPELAJAR.SUBJEK WHERE idpelajar = $idpelajar") or die (mysql_error());

while ($row = mysql_fetch_array ($result))

{

    }

mysql_close ($conn);

?>

 

This query is executed right after I logged in. The mystery was, SELECT command to pick user and password was success, but when It come to the logged page to another SELECT command, it displayed as above error.

 

I hope anyone here can help me to solve the matters....Thanks.

Link to comment
https://forums.phpfreaks.com/topic/230237-select-command-denied-to-user/
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.