Question : What is wrong with this SQL Query

I have a SQL query that is returning an erroneous result. I've attached the relevant code.

If you go here:

http://www.enviromedia.com/performance_reviews/review_login.php

and use

login: login
password: password

The emloyee_id = 1.

If I take the query statement and put it directly into the SQL box in PHPMyAdmin, I get the correct result for review_id which should be 54.

Is this because I'm trying to use two queries on the same page?

Thanks in advance.

Lisa
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
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";

Answer : What is wrong with this SQL Query

unset($_POST['value']);
Random Solutions  
 
programming4us programming4us