I make a query to the DB and I get the value "month" of the records of the table that is an integer type.
I want that according to the month received, PHP will print it in its string form. e.g. (month = 1 then print it as month="January").
Here I leave the code:
$peticion="SELECT * FROM operaciones WHERE anio='2016' AND suc_numerosede='1'";
$consulta=mysqli_query($conexion,$peticion);
$i=1;
while ($fila=mysqli_fetch_array($consulta)) {
echo $mes[$i]=$fila['mes'].'<br />';
$i++;
}
This is because I want to print the monthly records, but the months appear string and not integers.