donnykurnia icon

array edited

donnykurnia | PRO | 11/16/16 02:21:06 AM UTC | 0 ⭐ | 364 👁️ | Never ⏰ | []
PHP |

1.65 KB

|

None

|

0 👍

/

0 👎

<!DOCTYPE html>
<html>
    <head>
        <title>pehapecode</title>
        <link rel="stylesheet" type="text/css" href="fix_head.css">
   </head>
                <body>
                    
                    <table class="fixed-th">
                    <thead>
                        <tr>
                            <th>No</th>
                            <th>Nama Perusahaan</th>
                            <th>Judul Tender</th>
                            <th>Jenis Dokumen</th>
                            <th>No. Tender</th>
                            <th>No. Kontrak</th>
                            <th>Tahun</th>
                            <th>Buyer</th>
                            <th>No. Lemari</th>
                            <th>No. Box</th>
                            <th>Status</th>
                            <th>Tanggal</th>
                        </tr>
                    </thead>
                    
                    <tbody>
                            <?php
                            include "koneksi.php";
                            $result=mysql_query("select * from fill where status='User'");
                            while ($row=mysql_fetch_array($result))
                            {
                            echo "<tr>";
                            echo "<td>".$row['no']."</td>";
                            echo "<td>".$row['vendor']."</td>";
                            echo "<td>".$row['judul_tender']."</td>";
                            //echo "<td>".$exp = explode(",",$row['jenis_dokumen']);<- disini errornya, echo concat assignment
                            //mestinya ditulis spt ini:
                            echo "<td>";
                            $exp = explode(",",$row['jenis_dokumen']);
                            foreach ($exp as $enter){
                                echo $enter . "</br>";
                            }
                            echo "</td>";
                            echo "<td>".$row['no_tender']."</td>";
                            echo "<td>".$row['no_kontrak']."</td>";
                            echo "<td>".$row['tahun']."</td>";
                            echo "<td>".$row['pemilik']."</td>";
                            echo "<td>".$row['lemari']."</td>";
                            echo "<td>".$row['no_box']."</td>";
                            echo "<td>".$row['status']."</td>";
                            echo "<td>".$row['tgl_status']."</td>";
                            echo "</tr>";
                            }
                            ?>
                    </tbody>
 
                    </table>
                            
                </body>
</html>

Comments