include_once "session.php"; // include_once "site.css"; // include_once "functions.php"; include_once "dbcxn.php"; // $uniqueid = $_SESSION['unique']; // $usertype = $_SESSION['usertype']; $errors = $_SESSION["errors"]; //get the errors in session $err=split(",",$errors); //split errors at comma /* get data for drop downs */ // get data for months $result_months = mysql_query("SELECT * FROM months ORDER BY monthid ASC") or die(mysql_error()); $nums = mysql_num_rows($result_months); // put data into drop-down list box while ($row = mysql_fetch_array($result_months)) { $month = $row["month"]; $monthid = $row["monthid"]; //if a month was previously selected, mark as selected else display whole list if ($monthid == $_SESSION["birthmonth"]) {$month_options .= "\n";} else {$month_options .= "\n";} } // get data for days $result_days = mysql_query("SELECT * FROM days ORDER BY dayid ASC") or die(mysql_error()); $nums = mysql_num_rows($result_days); // put data into drop-down list box while ($row = mysql_fetch_array($result_days)) { $dayid = $row["dayid"]; $day = $row["day"]; if ($day == $_SESSION["birthdate"]) {$day_options .= "\n";} else {$day_options .= "\n";} } // get data for year for birthyear $year = date('Y'); //current year $year = $year - 13; //13 years ago $result_years = mysql_query("SELECT * FROM years WHERE year < \"$year\" ORDER BY yearid ASC") or die(mysql_error()); $nums = mysql_num_rows($result_years); // put data into drop-down list box while ($row = mysql_fetch_array($result_years)) { $yearid = $row["yearid"]; $year = $row["year"]; if ($year == $_SESSION["birthyear"]) {$year_options .= "\n";} else {$year_options .= "\n";} } ?>
|
include_once "cp_header.htm"; ?>
|