如何正确编写此代码.....在这里我使用了 3 'AND' 及其显示错误...请帮助我...
if(isset($_GET['datepicker'])){
$mydate = mysql_real_escape_string($_GET['datepicker']);
}
if(isset($_GET['cityText'])){
$city1 = mysql_real_escape_string($_GET['cityText']);
}
if(isset($_GET['categoryValue'])){
$category1 = mysql_real_escape_string($_GET['CategoryValue']);
}
$sql = "SELECT * FROM general WHERE gcity = '$city1' AND day1 = '$mydate' AND category = '$category1'"