It’s you code. Nobody here can see the code, nobody here knows how it should work and nobody knows what it’s doing right now.
If there is an issue with the hosting, I would like to know and try to fix it. But I need a bit more details than “it works on my machine but not on the hosting, so the hosting must be broken”.
So could you please try doing a bit more debugging? Does your code check for error messages correctly? Does the connection and query return a successful response? Did you check the table in phpMyAdmin and run the query there to see if the right data is being returned.
This hosting, I used since 2020 with the same script. I don’t face any problems. Suddenly appeared this problem. I can confidently say that it’s your Cpanel or your System problem. Please fix it soon.
Fix what soon? No one knows what to fix, as you have still yet to give us the details needed. Maybe its the server, maybe its your code. We don’t know. And if it is the server, no one knows how to fix it, or whats wrong with it, because you haven’t given any details.
what types of details do you want from me? I already said it’s a Cpanel or Database or System problem. It works fine last week. I don’t edit my code in the last 2 months.