My portfolio operates as planned on my local computer. I loaded all the php files and import the database tables correctly. I have checked if all the files came accross - php files and SQL tables. When accessing it via the URL on the web, the part where no login is need works correctly. When I try to login with incorrect username it displays error message as programmed. BUT when I login with correct username and password the process stops and redirects me to the website of the freewebhosting area. Is the problem perhaps connected to cookies? or does it drop the session perhaps. I include my session coding.
$SQL = "SELECT * FROM login WHERE username = $uname && password = $pword";
But when I add the suggested inverted commas I get an error reply and my username displayed in the textbox inside inverted commas. For example: 'admin'. If I leave the textbox blank, I get an error reply with '' inside the textbox. I also tried to bypass the test for username and password by only use: $SQL = "SELECT * FROM login"; On my local computer I then log on to the database successfully without entering anything in the textboxes. Trying this on the internet it redirects me to the website of the freewebhosting area without logging on.
I sorted out all my errors. It seems as if the freeoda server are far more case sensitive than our local server.
Especially when referring to file names. This was the reason for the redirection to page-not-found.html