if($result) {
if(mysql_num_rows($result) == 1) {
//Login Successful
$row = mysql_fetch_row($result);
$member = $row;
session_start();
$_SESSION['SESS_EMPLOYEE_ID'] = $member[0];
$_SESSION['SESS_FIRST_NAME'] = $member[1];
$_SESSION['SESS_LAST_NAME'] = $member[2];
$employee_id = $member[0];
$employee_status = $member[5];
print $employee_id . ' employee id here <br />';
$query = "SELECT review_id FROM employee_review WHERE employee_id='$employee_id'";
$result = mysql_query($query);
print $result[0] . "review id here now should be the number 1";
|