Open racedale opened 9 years ago
This is the code from the old-layout:
$bother = ""; // The below code leaves a message at the top of the page for users who haven't to take the risk management quiz.
// if ($_SESSION['sessionID']) { // $user_id = $_SESSION['sessionID']; // $sql = "SELECT risk_management, status FROM contact_information WHERE id=$user_id LIMIT 1"; // $result = mysql_query($sql); // $row = mysql_fetch_array($result); // if (($row[risk_management] < "2010-10-01") and ($row[status] == "Active" OR $row[status] == "Associate")) { // $bother = "Please take the risk management quiz! TAKE TEST HERE!"; // } // }
risk_management
status
contact_information
Probably be better to check for < current_semester rather than a specific date. Also would be good to have it show as a pop-up alert.
This is the code from the old-layout:
$bother = ""; // The below code leaves a message at the top of the page for users who haven't to take the risk management quiz.
// if ($_SESSION['sessionID']) { // $user_id = $_SESSION['sessionID']; // $sql = "SELECT
risk_management
,status
FROMcontact_information
WHERE id=$user_id LIMIT 1"; // $result = mysql_query($sql); // $row = mysql_fetch_array($result); // if (($row[risk_management] < "2010-10-01") and ($row[status] == "Active" OR $row[status] == "Associate")) { // $bother = ""; // } // }