I am trying to learn PHP and MySQL so I wrote/copied a comments box page.
I can upload a name and comment to mysql database and store them. Then the php file reloads the original page and echos out the new comments. This all works fine locally on my PC. The problem occurs when I upload to a website.
When I uploaded the page I can get the initial form to load up, but when I click submit its supposed to load another php file that processes the form. The second PHP file appears blank on screen but doesn't upload to the database.
To make sure its not a database issue I deleted the content of the 2nd php file and just put in a hello world output. Still nothing appears on screen.
Its probably something simple, but what I don't understand is everything works fine locally but not when I upload to a website.
Any ideas?😕