Как использовать два AND
оператора в запросе MySQLi?
$query = "select * from agent_profile where status=1";
$run = mysqli_query($con,$query);
$fetchdata = mysqli_fetch_array($run);
$crnt_id = $fetchdata['agent_id'];
if (mysqli_num_rows($run) > 0){
$pricequery = "select * from airport_parking where (agent_id = '$crnt_id') AND (airport_name = '$airport') AND ('$parking_start_time' >= start_time) ";
$resultprice = mysqli_query($con,$pricequery);
if( mysqli_num_rows($resultprice) > 0){
$squery = "select * from agent_services where agent_id = '$crnt_id' AND service_type= '$service_type' ";
$srun = mysqli_query($con,$squery);
if( mysqli_num_rows($srun) > 0 ){
while (($datarow = mysqli_fetch_array($run)) AND ($getdata = mysqli_fetch_array($resultprice)))
{