whenever i try to login or sign up or get something from database it didn’t work like homepage has a grids of ice creams in database it’s not showing. And while login or signup it says page isn’t working.
Other Information
The website is working perfectly fine using XAMPP on localhost.
Are you sure the PHP code is “not being executed”? It seems much more likely to me that the code is just not working as intended. There are many reasons why this could happen, such as:
Compatibility issues (e.g. PHP version differences).
Files that were not uploaded or updated correctly after fixing a bug in local code.
Data consistency issues. Like if the list of products on the home page is empty, maybe double check that the correct data is actually in the database and that the query is returning the desired data.
There is not a one-size-fits-all way to fix it, so your best option is just to debug your code. Adding var_dump and die statements in code to see what data is being used where to see where the code might be doing things it shouldn’t be doing.
It would help if you could try this yourself first. Most of us here don’t have access to your code and database and can’t check it for errors for you. And if you do get stuck, please give us all the relevant information, especially code snippets if you are trying to debug code.
I just debugged the code and found out that table names are case-sensitive.
This topic helped me show the errors on page and then when i reloaded the page and it show error that it couldn’t find any tables named PRODUCTS so i found out the tables name in php code and in Uppercase and in database it is lower-case . I changed the table name in database to uppercase and now it works like a charm.
Thank you Admin for taking out time for this and replying me, Hope you have a good day :).