如何使用 2 where 语句执行查询


How to execute a query with 2 where statements

请问这段代码应该是什么:

$sql = ("delete * from LogicTempAddress where PostCode=.'"$values['tempPostCode']."' and AddedBy='$AddedBy'");  

它的PHP和MySQL

试试这个

$sql = ("DELETE FROM LogicTempAddress WHERE PostCode='".$values['tempPostCode']."' AND AddedBy='".$AddedBy."'");