000webhost not displaying data from phpmyadmin

Hello everyone I’ve encountered a problem . Somehow the the website is not able to display data from phpmyadmin even though everything is working with my localhost. I thought maybe the webhost weirdly doesn’t understand some php functions .
So I created a simple webpage that display data from mysql , yes it works in localhost but not this webhosting . Can someone help me with this issue?
Sorry for my english by the way

Hello, posting some code may help.

Make sure site’s PHP version is the same with the one you’re using on local machine. You can set it in cPanel > general website settings

Hi thanks for the reply . my php version is 8.0.6 , the latest one in 000webhost is 8.0 which I’ve selected but unfortunately nothing changed .

Everything is working fine in my localhost however not in the 000w host

You should use PDO if you aren’t already :slight_smile:

https://stackoverflow.com/ is a great resource to troubleshoot as well