I'm using a PHP calendaring program and editing it to the job I need. It's called Datenator version .22. My issue with the statement below:
Code:
// Delete event
if(isset($_GET['delete'])) {
$s_month = $_GET[month];
$s_year = $_GET[year];
$sql = "DELETE FROM ".$tablepre."Events WHERE ID='".$_GET['delete']."'";
mysql_query($sql) or die(mysql_error());
header('Location: a_events.php?month='.$s_month.'&year='.$s_year.'&a=1');
The page in question lists events that can be edited. This code is supposed to show the current page minus the deleted event. It does so by getting the YEAR and MONTH that was posted to the page from the previous page. Say I'm looking at Sept 2004, then delete an event. Once I delete an event it should go back to the listing for Sept 2004 with the updated list. Instead the $_GET ALWAYS grabs November 2003! This make no sense to me. Why would it always grab this date even though my server date is correct and it is not specifically assigned this date anywhere? Any ideas? The month and year are posted when the month to edit is chosen so it should be correct.
TIA