query($sql); header("Location: index.php?action=DetailView&module=Emails&record=".$record); ?>