tblTempat
___________________
| kode | tempat |
|-----------------|
| 0001 | Sanur |
| 0002 | Denpasar |
| 0003 | Kuta |
===================
tblWaktu
___________________________________
| kode | waktu1 | waktu2 | waktu3 |
|---------------------------------|
| 0001 | 12:00 | 14:00 | 15:00 |
===================================
Pertanyaan saya:____________________
| tempat | Waktu |
|----------|-------|
| Sanur | 12:00 |
| Denpasar | 14:00 |
| Kuta | 15:00 |
====================
Saya sudah mempunyai query:SELECT tblTempat.kode, tblTempat.tempat, tblWaktu.waktu1
FROM tblTempat, tblWaktu
WHERE tblTempat.kode LIKE tblWaktu.kode"
Mohon bantuannya kakak...<div id="">
<div class="news_box">
<h2>Pendaftaran Peserta</h2>
<div class="news_info">November 28, 2048 | <strong>Author:</strong> <a href="#">Steve</a> | <strong>Category:</strong> <a href="#">CSS Templates</a> </div>
<form id="formdaftar" name="formdaftar" method="post" action="proses daftar.php">
<table width="99%" border="0">
<tr>
<td width="20%">1.<strong>Data Diri</strong></td>
<td width="80%">:</td>
</tr>
<tr>
<td>Nama Lengkap *</td>
<td>:
<input type="text" name="nama" id="nama" /></td>
</tr>
<tr>
<td>Tempat Lahir</td>
<td>:
<input type="text" name="tempat_lhr" id="tempat_lhr" /></td>
</tr>
<tr>
<td>Tangal Lahir </td>
<td>:Tgl
<select name="tgl" id="tgl">
<option value=""></option>
<option value="1" >1</option>
<option value="2" >2</option>
<option value="3" >3</option>
<option value="4" >4</option>
<option value="5" >5</option>
<option value="6" >6</option>
<option value="7" >7</option>
<option value="8" >8</option>
<option value="9" >9</option>
<option value="10" >10</option>
<option value="11" >11</option>
<option value="12" >12</option>
<option value="13" >13</option>
<option value="14" >14</option>
<option value="15" >15</option>
<option value="16" >16</option>
<option value="17" >17</option>
<option value="18" >18</option>
<option value="19" >19</option>
<option value="20" >20</option>
<option value="21" >21</option>
<option value="22" >22</option>
<option value="23" >23</option>
<option value="24" >24</option>
<option value="25" >25</option>
<option value="26" >26</option>
<option value="27" >27</option>
<option value="28" >28</option>
<option value="29" >29</option>
<option value="30" >30</option>
<option value="31" >31</option>
</select>
/Bulan
<select name="bulan" id="bulan">
<option value=""></option>
<option value="Januari" >Januari</option>
<option value="februari" >Februari</option>
<option value="maret" >Maret</option>
<option value="april" >April</option>
<option value="mei" >Mei</option>
<option value="juni" >Juni</option>
<option value="juli" >Juli</option>
<option value="agustus" >Agustus</option>
<option value="september" >September</option>
<option value="oktober" >Oktober</option>
<option value="november" >November</option>
<option value="desember" >Desember</option>
</select>
/Tahun
<select name="tahun" id="tahun">
</select></td>
</tr>
<tr>
<td>Email *</td>
<td>:
<input type="text" name="email" id="email" /></td>
</tr>
<tr>
<td>No Tlp *</td>
<td>:
<input type="text" name="tlp" id="tlp" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>2.<strong>Instansi</strong></td>
<td> </td>
</tr>
<tr>
<td>Instansi *</td>
<td>:
<input type="text" name="instansi" id="instansi" /></td>
</tr>
<tr>
<td>No tlp Instansi</td>
<td>:
<input type="text" name="tlp_instansi" id="tlp_instansi" /></td>
</tr>
<tr>
<td>Alamat </td>
<td>:
<textarea name="alamat" id="alamat" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Daftar" id="Daftar" value="Daftar" onclick="DaftarForm(); return false;" />
<input type="submit" name="batal" id="batal" value="Batal" oneclick="" /></td>
</tr>
</table>
</form>
<script type="text/javascript">
//*buat validasi peserta*//
function DaftarForm(){
if(document.getElementById('nama').value == ''){
alert('Nama lengkap tidak boleh kosong');
document.getElementById('nama').focus();
return false;
}
if(document.getElementById('email').value == ''){
alert('emali tidak boleh kosong');
document.getElementById('lastName').focus();
return false;
}
if(document.getElementById('tlp').value == ''){
alert('Telphon tidak boleh kosong');
document.getElementById('email').focus();
return false;
}
if(document.getElementById('instansi').value == ''){
alert('Nama Instansi tidak boleh kosong');
document.getElementById('phone').focus();
return false;
}
document.getElementById('formdaftar').submit();
}
</script>
</div>
</div>
<!-- Konten Tengah -->
<?php
include ("search.php");
$data = mysql_query("SELECT * FROM stuff order by F1 DESC LIMIT 20");
?>
<script>
$(function() {
$('#dialog').dialog({autoOpen: false});
$('*#dialok').click(function(){
$("#dialog").dialog({
autoOpen:true,
//closeOnEscape:false,
modal:true,
show: 'fade',
hide:'fade',
width: 910,
resizable: false, position: 'top'
});
});
});</script>
<table cellpadding="0" cellspacing="0" id="listing">
<tr class="kepala-kolom">
<th>Invoice</th>
<th>No Order</th>
<th>Jenis</th>
<th>Tanggal</th>
<th>Pembeli</th>
</tr>
<?php
while($d = mysql_fetch_array($data))
{
?>
<tr bgcolor="#FFFFFF">
<td><strong><?php echo $d['F1'];?></strong></td>
<td><?php echo $d['F22'];?></td>
<td><?php echo $d['F9'];?></td>
<td><?php echo $d['F16'];?></td>
<td align="center"><a href="#" id="dialok" style="float:left">detail</a>
</td>
</tr>
<?php }?>
</table>
<div id="dialog" title="Form Edit Stuffing"><?php include("booking-form2.php");?></div>
<table style="width:344px; float:left">
<tr>
<td colspan="2">
<div style="width:170px; float:left"><strong>Invoice:</strong><br><input type="text" style="width:160px; border:0px; text-align:right" id="invoice-form"></div>
<div style="width:168px; float:left"><strong>No Order</strong><br>
<input type="text" style="width:169px; border:0px">
</div>
</td>
</tr>
<tr><td>Jenis</td><td><input type="text" style="width:100%" id="autocomplete"></td></tr>
<tr><td>Tanggal</td><td><input type="text" style="width:100%"></td></tr>
<tr><td>Pembeli</td><td><input type="text" style="width:100%"></td></tr>
</table>
<?php include("session.php"); ?>
<?php
//file delete-gallery.php
//koneksi ke database
include ('../Connections/koneksi.php');
if(isset($_GET['id'])){
$id = (int) $_GET['id'];
$sql = "select * from sp_image where id_galeri='$id'";
$result = mysql_query($sql);
if(mysql_num_rows($result) > 0 ){
while(mysql_num_rows($result) > 0 ){
$data = mysql_fetch_array($result);
//delete file
@unlink('../images_galeri/'.$data['url']);
@unlink('../images_galeri/thumbs/thumb_'.$data['url']);
//delete data di database
mysql_query("delete from sp_image where id_galeri='$id'");
mysql_query("delete from sp_galeri where id_galeri='$id'");
}
}
}
header("Location: galeri.php");