mas mau tanya,, ini saya ada kesulitan tp saya tidak tau kesalahannya dimana
mhon mas bisa menganalisa simana kesalannya...
trimaskasih
<div id="desain_main">
<div align="right">
<?php
if (!empty($_GET) && $_GET)
?>
</div>
<form action="" method="post" enctype="multipart/form-data">
<table width="100%" border="1" cellspacing="0" bordercolor="#666666">
<tr>
<td colspan="10" bgcolor="#66CCFF"><table width="100%" border="0" cellpadding="3" cellspacing="2" background="gambar/anslkdasd copy.png" bgcolor="#66CCFF">
<tr>
<td width="7%"><label class="style20">Bulan</label></td>
<td width="89%"><select name="bl" id="bl">
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
<select name="th" id="th">
<? $q=2006; $qq=date("Y");
while ($q!=$qq) { echo"<option value=";echo $q;echo" >";echo $q;echo"</option>"; $q=$q+1; } echo"<option value=";echo $q;echo" >";echo $q;echo"</option>"; ?>
</select> <input type="submit" name="button" id="button" value="Lihat"></td>
<td width="16%"><label><input type="submit" name="button" id="button" value="PRINT"></label></td>
<td width="67%"><label></label></td>
</tr>
</table></td>
</tr>
<tr>
<td width="3%" rowspan="2" bgcolor="#00FFFF" class="style20"><div align="center" class="style21">No</div></td>
<td width="7%" rowspan="2" bgcolor="#00FFFF" class="style20"><div align="center" class="style21">
<div align="center" class="style20">No Nota </div>
</div>
<div align="center" class="style21"></div></td>
<td width="11%" rowspan="2" bgcolor="#00FFFF" class="style20"><div align="center" class="style21">Nama</div></td>
<td width="10%" rowspan="2" bgcolor="#00FFFF" class="style20"><div align="center" class="style21"><span class="style4">Alamat</span></div>
<div align="center" class="style21"></div></td>
<td width="9%" rowspan="2" bgcolor="#00FFFF" class="style20"><div align="center"><span class="style4">Jasa</div></td>
<td width="10%" rowspan="2" bgcolor="#00FFFF" class="style20"><div align="center"><span class="style4">Keterangan</span></div></td>
<td width="11%" rowspan="2" bgcolor="#00FFFF" class="style20"><div align="center" class="style21">Status</div>
<div align="center" class="style21"></div></td>
<td colspan="3" bgcolor="#00FFFF" class="style20"><div align="center">Tanggal Masuk </div></td>
</tr>
<tr>
<td width="4%" bgcolor="#00FFFF" class="style20"><div align="center">Tgl</div></td>
<td width="5%" bgcolor="#00FFFF" class="style20"><div align="center">Bulan</div></td>
<td width="5%" bgcolor="#00FFFF" class="style20"><div align="center">Tahun</div></td>
</tr>
<?php
include("sambung.php");//koneksi kedatabase
mysql_select_db("laundry");//membuka database
$warnaGenap = "#C7FEFD"; // warna abu-abu
$warnaGanjil = "#FFFFFF"; // warna putih
if($Submit){
$cari=(" SELECT *
FROM `identitas`
WHERE `$select` ='$pencarian'
LIMIT 0 , 30 ");
$no=1;
$counter = 1;
$ambil=mysql_query($cari);
while($data=mysql_fetch_row($ambil)){
if ($counter % 2 == 0) $warna = $warnaGenap;
else $warna = $warnaGanjil;
?>
<tr bgcolor="$warna">
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$no"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[0]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[1]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[2]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[3]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[4]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[5]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[6]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[7]"?></div></td>
<td bgcolor="#FFFFFF"><div align="center"><?php echo"$data[8]"?></div></td>
</tr>
<tr>
<td></tr></td>
</tr>
<?php
$no++;
$counter++;
}
}
?>
</table>
</form>
<p> </p>
</div>
</div>
</div>
<div id="desain_footer_wrapper">
<div id="desain_footer">
<a href="index.php">Home</a> | <a href="Input.php">Input Data</a> | <a href="lihat.php">Lihat Data</a> | <a href="caridata.php">Cari Data</a> <br /><br />
Copyright © 2013 Faizal Muhardianto IF'10
</div>
</div>
Silahkan
login untuk menjawab!
danura
· Jun 27, 2013
· 0 Suka
· 0 Tidak Suka
mas eliyx Bukan Dukunn , errornya Gimana mbak
errornya seperti apa? bisa tolong sebutkan karena saya tidak bisa coba kodenya begitu saja.