I've been hacking away at this for hours now. Before I determine it's some problem with my host I will try here. I had to move this website from one host to another and everhything on the site is working except for this one file. It's a CRM system and this is the delete a client option. It deletes the client but just shows the message "client deleted. Please hold.." it does not re-direct. stays on the page with this message. I'm really at a loss as other files have the exact same re-direct and work fine?
<?php
include('dbopen.php');
$delete_id = $_GET['details_id'];
// sql to delete a record
$sql = "DELETE FROM details WHERE details_id= $delete_id";
if ($conn->query($sql) == TRUE) {
//delets record but does not re-direct?
header("refresh:3; url=clients.php");
echo "client deleted. Please hold...";
} else {
echo "Error deleting record: Contact Dylan";
}
$conn->close();
?>