You probably think its faily lame lol. I have just been hacking and modifying code whilst learning what it does.
Out of interest how come this works without the ' '
<?php
$year_url = "1974";
if (isset($HTTP_GET_VARS['year'])) {
$year_url = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['year'] : addslashes($HTTP_GET_VARS['year']);
}
$month_url = "11";
if (isset($HTTP_GET_VARS['month'])) {
$month_url = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['month'] : addslashes($HTTP_GET_VARS['month']);
}
$day_url = "22";
if (isset($HTTP_GET_VARS['day'])) {
$day_url = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['day'] : addslashes($HTTP_GET_VARS['day']);
}
$date_url = $year_url . $month_url . $day_url;
$OpID = $HTTP_GET_VARS['operator'];
$JobID = $HTTP_GET_VARS['job'];
$JobType = $HTTP_GET_VARS['jobtype'];
$insertSQL = sprintf("INSERT INTO date_buffer (Date, OpID, JobID, JobType) VALUES ($date_url, $OpID, $JobID, $JobType)");
mysql_select_db($database_mAROFFICE, $mAROFFICE);
$Result1 = mysql_query($insertSQL, $mAROFFICE) or die(mysql_error()); //End of section
?>