I have an html website and I have this PHP Code that Send info to my database and then redirects me back to the html site.
mysqli_query($con,"INSERT INTO games (Title, Developer, releaseYear)
VALUES ('$_POST[title]','$_POST[developer]','$_POST[releaseYear]')");
mysqli_close($con);
$url = 'http://localhost/mysite/index.html';
header( "Location: $url" );
Now I have this div named searchResultBox. What I wanna do is to add a text into that div AFTER I have been redirected.
I have tried with code I have found on google but nothing has been succesful. This I found on stackoverflow.
$('#searchResultBox').append('<div>Added entry!</div>');
Any ideas? thanks