<?php
if (count($jurnal)) {
echo "<table class='data'>\n";
echo "<tr class='data'>\n";
echo "
<th class='top' scope='col' align='center'>ID</th>\n
<th class='top' scope='col' align='center'>Edisi Terbit</th>
<th class='top' scope='col' align='center'>Pengarang</th>
<th class='top' scope='col' align='center'>Cover Jurnal</th>\n";
echo "</tr>\n";
foreach ($jurnal as $key => $list) {
echo "<tr>\n";
echo "<td align='center'>" . $list['IDJurnal'] . "</td>\n";
echo "<td>Volume " . $list['volume'] . " Nomor " . $list['nomor'] . " Bulan " . $list['bulan'] . " Tahun " . $list['tahun'] . " </td>\n";
echo "<td align='center'>" . $list['nama_pengarang'] . "</td>\n";
echo "<td align='center'>";
?>
<img alt="" src="<?= base_url(); ?>uploads/jurnal/<?= $list['cover']; ?>" border="0" width="50" height="50" />
<?php
echo "</td>\n";
echo "</tr>\n";
}
echo "</table>";
}
?>
the output is, Volume Jurnal 3 Nomor 3 Bulan 3 Tahun 2003
i want the output is volume Jurnal 3 Nomor 3 Bulan Maret Tahun 2003, if you can use if else