i have value from database, when the data show 1, it will be a, when the data show 2, it will be b, ....
CREATE TABLE `jurnal`(
`id` INT(11)NOT NULL AUTO_INCREMENT,
`month` INT(2)NOT NULL,
`year` INT(4)NOT NULL,
PRIMARY KEY(`id`))ENGINE = INNODB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8;
the value from database like:
id=1 month=3 year=2012
i want make the value from month
using 'if else' if work, to make
if 1, it will be a, if 2, it will be b, ... and so on to 12
the output data that I wish would like
c, 2012 not 3, 2012
thank's before