[ create a new paste ] login | about

Link: http://codepad.org/aN7oqyns    [ raw code | output | fork ]

PHP, pasted on Nov 26:
<?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'] . "&nbsp; Nomor " . $list['nomor'] . "&nbsp; Bulan " . $list['bulan'] . "&nbsp;Tahun " . $list['tahun'] . "&nbsp;</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 


Output:
1
2
3

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 


Create a new paste based on this one


Comments: