以下のようなメッセージエラー
Parse error: syntax error, unexpected $end
このエラーは常に ';','}',.. などの php のタグが欠落していることが原因であることがわかっています..この構文を 2 時間チェックしましたが、どこが間違っているのかわかりませんでした。
<?php
include "config/koneksi.php";
$kolom = $_POST['kolom'];
$kolom1 = $_POST['kolom1'];
$data = mssql_query("SELECT * FROM tblTrnProduct WHERE (Posisi LIKE '$kolom%' or Posisi LIKE '$kolom1%') Order BY Posisi,ProductName ASC");
$n = mssql_num_rows($data);
$no=1;
if($n == "0"){echo "error"; }
else{
$data1 = mssql_query("SELECT * FROM tblTrnProduct where (Posisi LIKE '$kolom%' or Posisi LIKE '$kolom1%') AND ProductName = 'TCA CREAM 65 ML FC 24% A Z A M' ORDER BY Line,PalletNumber ASC");
$n1 = mssql_num_rows($data1);
$j = mssql_fetch_array(mssql_query("SELECT SUM (Quantity) as total FROM tblTrnProduct where (Posisi LIKE '$kolom%' or Posisi LIKE '$kolom1%') AND ProductName = 'TCA CREAM 65 ML FC 24% A Z A M'"));
$jumlah = $j['total'];
if($n1 == "0"){echo" <br><strong>Produk TCA AZZAM tidak ditemukan</strong></br>"; }
else{?>
<div id="print-area-2" class="print-area">
<div style="text-align:right;"><a class="no-print" href="javascript:printDiv('print-area-2');"><font color='#0000CC'><strong> Print </strong></font></a></div>
<br><strong>Produk TCA AZZAM</strong></br><br>
<table border='1' bgcolor='#CCFF66'>
<thead>
<tr>
<th>Nomor Rak</th>
<th>Nama Produk</th>
<th>Kode Produksi</th>
<th>Line/FM</th>
<th>Nomor Palet</th>
<th>Nomor Seri Produk</th>
<th>Quantity</th>
</tr>
</thead>
<?php while ($d=mssql_fetch_array($data1)){
$Posisi = $d[Posisi];
$ProductName = $d[ProductName];
$ProductionDate = $d[ProductionDate];
$Line = $d[Line];
$PalletNumber = $d[PalletNumber];
$SeriNumber = $d[SeriNumber];
$Quantity = $d[Quantity];
echo"
<tbody>
<tr>
<td><div align='center'>$Posisi</div></td>
<td><div align='left'>$ProductName</div></td>
<td><div align='center'>$ProductionDate</div></td>
<td><div align='center'>$Line</div></td>
<td><div align='center'>$PalletNumber</div></td>
<td><div align='center'>$SeriNumber</div></td>
<td><div align='center'>$Quantity</div></td>
</tr>";
$no++;}
echo"<tr>
<td colspan='6'><div align='center'><strong>Jumlah</strong></div></td>
<td colspan='2'><div align='center'><strong>$jumlah Carton</strong></div></td>
</tr>
</tbody>";} ?>
</table></br><br>
<?php
$data2 = mssql_query("SELECT * FROM tblTrnProduct where (Posisi LIKE '$kolom%' or Posisi LIKE '$kolom1%') AND ProductName = 'TCA CREAM 65 ML FC 24% SUN KARA' ORDER BY Line,PalletNumber ASC");
$n2 = mssql_num_rows($data2);
$j = mssql_fetch_array(mssql_query("SELECT SUM (Quantity) as total FROM tblTrnProduct WHERE (Posisi LIKE '$kolom%' or Posisi LIKE '$kolom1%') AND ProductName = 'TCA CREAM 65 ML FC 24% SUN KARA'"));
$jumlah = $j['total'];
if($n2 == "0"){echo"<br><strong>Produk TCA SUN KARA tidak ditemukan</strong></br>"; }
else{ ?>
<strong>Produk TCA SUN KARA</strong>
<table border='1' bgcolor='#CCFF66'>
<thead>
<tr>
<th>Nomor Rak</th>
<th>Nama Produk</th>
<th>Kode Produksi</th>
<th>Line/FM</th>
<th>Nomor Palet</th>
<th>Nomor Seri Produk</th>
<th>Quantity</th>
</tr>
</thead>
<?php while ($d=mssql_fetch_array($data2)){
$Posisi = $d[Posisi];
$ProductName = $d[ProductName];
$ProductionDate = $d[ProductionDate];
$Line = $d[Line];
$PalletNumber = $d[PalletNumber];
$SeriNumber = $d[SeriNumber];
$Quantity = $d[Quantity];
echo"
<tbody>
<tr>
<td><div align='center'>$Posisi</div></td>
<td><div align='left'>$ProductName</div></td>
<td><div align='center'>$ProductionDate</div></td>
<td><div align='center'>$Line</div></td>
<td><div align='center'>$PalletNumber</div></td>
<td><div align='center'>$SeriNumber</div></td>
<td><div align='center'>$Quantity</div></td>
</tr>";
$no++; }
echo"
<tr><td colspan='6'><div align='center'><strong>Jumlah</strong></div></td>
<td colspan='2'><div align='center'><strong>$jumlah Carton</strong></div></td>
</tr>
</tbody>"; } ?>
</table></br><br>
<?php $data3 = mssql_query("SELECT * FROM tblTrnProduct where (Posisi LIKE '$kolom%' or Posisi LIKE '$kolom1%') AND ProductKategori = 'BULK PACK' ORDER BY Line,PalletNumber ASC");
$n3 = mssql_num_rows($data3);
$j = mssql_fetch_array(mssql_query("SELECT SUM (Quantity) as total FROM tblTrnProduct where (Posisi LIKE '$kolom%' or Posisi LIKE '$kolom1%') AND ProductKategori = 'BULK PACK'"));
$jumlah = $j['total'];
if($n3 == "0"){echo"<br><strong> Produk BULK PACK tidak ditemukan</strong></br>";}
else{ ?>
<strong>Produk BULK PACK</strong>
<table border='1' bgcolor='#CCFF66'>
<thead>
<tr>
<th>Nomor Rak</th>
<th>Nama Produk</th>
<th>Kode Produksi</th>
<th>Line/FM</th>
<th>Nomor Palet</th>
<th>Nomor Seri Produk</th>
<th>Quantity</th>
</tr>
</thead>
<?php while ($d=mssql_fetch_array($data3)){
$Posisi = $d[Posisi];
$ProductName = $d[ProductName];
$ProductionDate = $d[ProductionDate];
$Line = $d[Line];
$PalletNumber = $d[PalletNumber];
$SeriNumber = $d[SeriNumber];
$Quantity = $d[Quantity];
echo"
<tbody>
<tr>
<td><div align='center'>$Posisi</div></td>
<td><div align='left'>$ProductName</div></td>
<td><div align='center'>$ProductionDate</div></td>
<td><div align='center'>$Line</div></td>
<td><div align='center'>$PalletNumber</div></td>
<td><div align='center'>$SeriNumber</div></td>
<td><div align='center'>$Quantity</div></td>
</tr>";
$no++ ; }
echo"<tr>
<td colspan='6'><div align='center'><strong>Jumlah</strong></div></td>
<td colspan='2'><div align='center'><strong>$jumlah Carton</strong></div></td>
</tr>
</tbody>"; } ?>
</table>
</div></br>
<br><input type='button' value='Back' id='back' onclick='window.location.reload()'></input></br>
<?php} ?>
間違いを見つけるのを手伝ってください。ありがとう...