- Beranda
- Komunitas
- Tech
- Website, Webmaster, Webdeveloper
- PHP 5.6.3 - Parse error: syntax error, unexpected '}' in C:\xampp\ 


TS
boim1989
PHP 5.6.3 - Parse error: syntax error, unexpected '}' in C:\xampp\
Dear All Master, Suhu,
Ane ada script yang selalu muncul error Parse error: syntax error, unexpected '}' in C:\xampp\ tapi hanya berlaku di PHP 5.6.3, tapi kalau ane jalanin di PHP 5.3.5 itu normal, kenapa ya Gan??
Mohon Bantuanya.
 
 
Berikut scriptnya:
Ane ada script yang selalu muncul error Parse error: syntax error, unexpected '}' in C:\xampp\ tapi hanya berlaku di PHP 5.6.3, tapi kalau ane jalanin di PHP 5.3.5 itu normal, kenapa ya Gan??
Mohon Bantuanya.
 
 Berikut scriptnya:
PHP Code:
<?php
 if($cek){
 
 $no = 1;
  while($row=mysql_fetch_array($query)){
 ?>
          <tr>
            <td align="center"><a href="atf_edit.php?id=<?php echo $row['id_atf']; ?>" class="style3">
          <img src="images/b_edit.png" alt="Edit" border="0" /></a></td>
            <td align="center"><a href="atf_list_delete.php?id=<?php echo $row['id_atf']; ?>"><img src="images/b_drop.png" alt="Delete" border="0"/></a></td>
            <td align="center"><?php echo $no++; ?></td>
            <td><span class="style3"><?php echo $row['shipment']; ?></span></td>
            <td><span class="style3"><?php echo $row['cnee_name']; ?></span></td>
            <td><span class="style3"><?php echo $row['house_awb']; ?></span></td>
            <td><span class="style3"><?php echo $row['job_no']; ?></span></td>
            <td><span class="style3"><?php echo $row['atd_date']; ?></span></td>
            <td><span class="style3"><?php echo $row['trans_company']; ?></span></td>
            <td><span class="style3"><?php echo $row['nopol']; ?></span></td>
            <td><span class="style3"><?php echo $row['webtrack_psswd']; ?></span></td>
            <td><span class="style3"><?php echo $row['driver_name']; ?></span></td>
            <td><span class="style3"><?php echo $row['area']; ?></span></td>
            <td><span class="style3"><?php echo $row['ata_date']; ?></span></td>
          </tr>
         <?php   
  }
 }else{
  echo "Tidak ada data";
 }
   }              //Errornya disini
else{
 unset($_POST["submit"]);
}
?>
Diubah oleh boim1989 26-05-2015 15:41
0
1.7K
10


Komentar yang asik ya
Urutan
Terbaru
Terlama


Komentar yang asik ya
Komunitas Pilihan