I have a php script, which i want to save something to a database and then immediately redirect to a html page.
my code is first all the databse stuff ending with