I click my submit button it updates the database but not the website content, I click the submit button again and it updates the website content this time.
This problem always pops up, and its due to incorrect structure of code in most parts :(
I cant seem to remember what structure I should have my code set out to (updates, selects, etc and in which order) - as it seems complex yet correct.
So anyone lead me in the right direction? Thanks
PS: I use the below code to refresh the page:
header('refresh: 0; url=test.php');