<!-- change styles if you want --> <style type="text/css"> p {font-family: georgia, verdana, sans-serif; font-size: 13px; color: #333333; } h1 {font-family: georgia, verdana, sans-serif; font-size: 16px; color: #26618e; } body {background-color: #fcfcfc;} </style> </head> <body> <br/>
<?php
// THERE IS NO NEED TO EDIT BELOW HERE
$mon = $_GET['mon']; // month from clicked month name $month = intval($mon); // var to use with month name array if (strlen($mon)==1) { $mon = "0". $mon; } $yr = $_GET['yr']; // year from clicked month name
include("cal_parms.php"); include("./lang/dat_nam_en.php"); // load default language file so as not to mess anything upp with new text. include($dat_names); // retrieved from cal_parms.php as a 'language' file include("cal_db_conn.php"); mysql_connect($db_host, $db_login, $db_pass) or die ("Can't connect!"); mysql_select_db($db_name) or die ("Can't open database!");
// retrieve all events for the month $query = "SELECT * from $db_table WHERE (ev_dat>='$min_dat') AND (ev_dat<='$max_dat') ORDER by ev_dat"; $result = @mysql_db_query($db_name, $query); echo "<table width='480' cellpadding='3' cellspacing='3' align='center' style='border: thin dotted #999999;' bgcolor='#f7f7f7'><tr><td>";