Jump to content

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

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.