![]() |
Access denied when executing a SQL query from a plugin
Hi,
I get this message when I enable the following plugin : Code:
$query="SELECT username FROM user WHERE userid = 1"; What could be the reason ? everything is working otherwise, the board, as the SQL queries from Maintenance > Execute SQL Query. |
Your password is wrong check your config.php in your includes folder
$config['MasterServer']['password'] = |
That's also not how you execute queries within vbulletin. You need to go through the db object to make the query. Take a look at any vbulletin page and see how it's done.
|
Its failing because you are using completely the wrong method to access the database.
As posted above, you need to use the $db object within vbulletin, not raw calls to mysql_query(). |
All times are GMT. The time now is 07:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|