'URL: I can't pass "SELECT" statement to PHP connection string

I have hosting domain in Godaddy, when I pass a "SELECT" statement string to my PHP file it works fine, like "example.com/test.php?stm=select * from users" (by escaping spaces for sure), but if I add "WHERE" to the statement like "example.com/test.php?stm=select * from users where id = 1" I gut this message:

Forbidden You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

So, is this a problem in Godaddy hosting or I made any mistake?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source