View difference between Paste ID: U8eMgjre and Td58VcfP
SHOW: | | - or go back to the newest paste.
1
<!DOCTYPE html>
2
<html>
3
	<head>
4
		<title>pehapecode</title>
5
		<link rel="stylesheet" type="text/css" href="fix_head.css">
6
   </head>
7
				<body>
8
					
9
					<table class="fixed-th">
10
					<thead>
11
						<tr>
12
							<th>No</th>
13
							<th>Nama Perusahaan</th>
14
							<th>Judul Tender</th>
15
							<th>Jenis Dokumen</th>
16
							<th>No. Tender</th>
17
							<th>No. Kontrak</th>
18
							<th>Tahun</th>
19
							<th>Buyer</th>
20
							<th>No. Lemari</th>
21
							<th>No. Box</th>
22
							<th>Status</th>
23
							<th>Tanggal</th>
24
						</tr>
25
					</thead>
26
					
27
					<tbody>
28
							<?php
29
							include "koneksi.php";
30
							$result=mysql_query("select * from fill where status='User'");
31
							while ($row=mysql_fetch_array($result))
32
							{
33
							echo "<tr>";
34
							echo "<td>".$row['no']."</td>";
35
							echo "<td>".$row['vendor']."</td>";
36
							echo "<td>".$row['judul_tender']."</td>";
37-
							echo "<td>".$exp = explode(",",$row['jenis_dokumen']);
37+
							//echo "<td>".$exp = explode(",",$row['jenis_dokumen']);<- disini errornya, echo concat assignment
38-
								foreach ($exp as $enter){
38+
							//mestinya ditulis spt ini:
39
							echo "<td>";
40-
								}
40+
							$exp = explode(",",$row['jenis_dokumen']);
41
						    foreach ($exp as $enter){
42
								echo $enter . "</br>";
43
							}
44
							echo "</td>";
45
							echo "<td>".$row['no_tender']."</td>";
46
							echo "<td>".$row['no_kontrak']."</td>";
47
							echo "<td>".$row['tahun']."</td>";
48
							echo "<td>".$row['pemilik']."</td>";
49
							echo "<td>".$row['lemari']."</td>";
50
							echo "<td>".$row['no_box']."</td>";
51
							echo "<td>".$row['status']."</td>";
52
							echo "<td>".$row['tgl_status']."</td>";
53
							echo "</tr>";
54
							}
55
							?>
56
					</tbody>
57
58
					</table>
59
							
60
				</body>
61
</html>