in table I have datum as date field. and I want to display table with month of datum variable. This is what I have now,
[php]rstvt= mysql_query("select * from ( intval(date_format(datum,‘m’)) as periodd,max(vt) as rsvt from rezije group by intval(date_format(datum,‘m’)) ");
// $result = mysqli_query($con,“SELECT * FROM Persons”);
// summary
echo ‘
Godina-mjesec | ’;VT | ’;
’.$row[‘periodd’] .’ | ’;’.$row[‘rsvt’] .’ | ’;
waht is function to take month as integer value ?
OpzMaster: Edited to have code in php code encapsulation.