How to return to a previous page after running a PHP script

Posted on 16th Feb 2014 by admin

I'm having a bit of a melt down here because I think this should be really easy but can't work it out...!

My page lists the records in my database and next to each record is a 'Delete' button. What I want to happen is once I click delete my script should run the gives instructions to delete the record from the database after which it will refresh the page and show the database records again (obviously minus the one that has been deleted).

How can I do this?

Thanks

Other forums