I just wondering how could this happen, when I try my code on localhost, it works fine. But when I copied the code on hosting, the result wont show up. Could someone tell me what is happening, here is my code
$squery = $config->prepare("SELECT * FROM kbm WHERE nama=? ORDER by tanggal DESC LIMIT ?, ?");
$squery->bind_param("sii", $nama, $curr, $limit);
$squery->execute();
$query = $squery->get_result();
$sqdata = $config->prepare("SELECT * FROM kbm WHERE nama=?");
$sqdata->bind_param("s", $nama);
$sqdata->execute();
$qdata = $sqdata->get_result();
and here is how I access the result
while($row = $query->fetch_assoc()){
At first I thought it was because the PHP version, so I search for solution and I find https://php.watch/versions/8.2/mysqli_execute_query I tried to implement it, but still no result, or did I do it wrong?