I need to redirect the user to a different page, but the redirect using the header thing won't work. If something happens within the code and a certain if statement is found true, the code will write something to a database, and then I need it to redirect the user to a different page. How can I do this?
If it is possible to have a few second delay too, that would be cool.