'".$id_value."' and ouvert=1 and num_location='".$loc_id."' LIMIT 1"; $res_date_calendrier = pmb_mysql_query($req_date_calendrier); if (pmb_mysql_num_rows($res_date_calendrier)) { $row = pmb_mysql_fetch_object($res_date_calendrier); $retour = array(0=>$row->date_ouverture, 1=>formatdate($row->date_ouverture)); } } } echo encoding_normalize::json_encode($retour); break; }