Good afternoon everyone, I'm having this error in wordpress:
Fatal error: Call to a member function get_results () on null in C: \ xampp \ htdocs \ BrokerWP \ wp-content \ plugins \ clients \ api \ lista.php online 11
The page code in question:
<?php
$x = require_once '../../../../wp-includes/wp-db.php';
var_dump($x);
global $wpdb;
$sel = "select * from cliente limit 10";
$res = $wpdb->get_results($sel, ARRAY_N);
print_r($res);
What's wrong?