I am trying to make a query to my table by specifying, taking an id, in specific:
$id=$_GET['id'];
$Consult= "SELECT * FROM pagos_colegio WHERE id='$id' AND mes BETWEEN ('jan' AND 'Dec');
";
$result= $conexion->query($Consult);
if($fila = $result->fetch_assoc())
{
}
The idea is to know where this id appears between those months, Thanks in advance.