You are logged in as user $user
\n"; // get the user details from the cookie } else { print "You are not logged in. If you wish to log in, please visit the members home page.
\n"; } $centre=$_COOKIE["DEMOCentreName"]; $centrenum=$_COOKIE["DEMOCentreNo"]; $usertype=$_COOKIE["DEMOUserType"]; // display centre details, if there are any if ($centre != "") { print ("Centre name: " . $centre . " Centre number: " . $centrenum . " User type: " . $usertype . "
\n"); } ?>This page lists all of the resources you or your students have saved in the Site database. This includes candidate, witness and testimony details. The answers to any of the interactive excercises completed by the student can also be viewed here. (As long as the student saved them!)
SQL = " . $query); $row=mysql_fetch_array($sth, MYSQL_ASSOC) or die("fetch failed: " . mysql_error()); $centre=$row["centre_name"]; $centrenum=$row["centre_no"]; print ("
Centre address: " . $row["address"] . "
Telephone number: " . $row["telno"] . "
Other details: " . $row["other"] . "
Existing resources for centre:
\n"); $query="select * from bscandidates where centre_name='" . $centre . "' order by candidate_name"; $sth=mysql_query($query) or die("Query failed: " . mysql_error() . "No candidates found.
\n"); } else { print ("". $num_rows . " candidates found.
\n| Candidate: " . $row["candidate_name"] . " Ref: " . $row["reference"] . " | Candidate details | Witness details | Testimony details |
| This candidate has not stored any answers. | |
Stored answers:
| |