如何写 select 等值查询

how write select query in equal value

$values=AEO 94 AEO 96,如何写 select 查询 t_assign_to==$values;我不知道该怎么做

<?php
include("dbconfig.php");                  
$sql=mysql_query("SELECT * FROM task_employee WHERE emp_underon ='2'");
$count = mysql_num_rows($sql);//2
while($row=mysql_fetch_assoc($sql)){
$values=$row['emp_id'].'<br>';// i got value here like this
//AEO94 
//AE066
    if($count > 0){
    //$mysql = mysql_query("SELECT * FROM task WHERE t_assign_to='$values'")    
    echo $count;
    }else{
    echo "0 results";
    }
}

?>

我看到了小问题

//$values=$row['emp_id'].'<br>';// html tag is attached to value
$values = $row['emp_id'];// remove br tag 

并在你的条件

前添加where

查询:$mysql = mysql_query("SELECT * FROM task where t_assign_to='$values'") ;