admin管理员组文章数量:1130349
I have a website, hosted on Wordpress.
I have created a custom table within the WPDB, with ARI Adminer, called 'people'. I have entered some entries for testing.
I have created a test page with the following code;
<?php
global $wpdb;
$roster = $wpdb->get_results($wpdb->prepare("SELECT * FROM people"));
foreach ($roster as $people) {
$peoplesurname = $people->Surname;
}
?>
When I preview the page, I get:
403 Forbidden Permission denied. Our sentries tell us that you should not be here.
I am listed as an administrator, however I did not setup/install anything, I was added after setup.
I am assuming that it is an access issue to the WPDB?
Is there anywhere on the front end or in the code that I need to update to get access to the DB?
Thanks
I have a website, hosted on Wordpress.
I have created a custom table within the WPDB, with ARI Adminer, called 'people'. I have entered some entries for testing.
I have created a test page with the following code;
<?php
global $wpdb;
$roster = $wpdb->get_results($wpdb->prepare("SELECT * FROM people"));
foreach ($roster as $people) {
$peoplesurname = $people->Surname;
}
?>
When I preview the page, I get:
403 Forbidden Permission denied. Our sentries tell us that you should not be here.
I am listed as an administrator, however I did not setup/install anything, I was added after setup.
I am assuming that it is an access issue to the WPDB?
Is there anywhere on the front end or in the code that I need to update to get access to the DB?
Thanks
本文标签: php403 Forbidden Wordpress Database Results
版权声明:本文标题:php - 403 Forbidden Wordpress Database Results 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749027242a2305297.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论