我环顾四周,尝试了一些事情,但我似乎无法让它工作......有人可以帮忙吗?
$typeall = " ('House','Condo','Loft','Townhouse','Land')";
$rs = mysql_query("SELECT * FROM 'houses' WHERE and category IN " .$typeall);
不工作
但如果我输入
$rs = mysql_query("SELECT * FROM 'houses' WHERE and category IN ('House','Condo','Loft','Townhouse','Land')");
它工作完美,为什么?
谢谢。