Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!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>
Advertisement
Add Comment
Please, Sign In to add comment