PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Mobile Game Development Course
Learn how to create awesome HTML5 games that run on iPhone, iPad, Android and Desktop! Sign up today for this $99 online course.  | From our sponsors | | |
mau tanya buat agan2 yg uda master PHP niih.. kok... Sep 6th 2013, 01:19, by Albertus Erwin Ridoean | mau tanya buat agan2 yg uda master PHP niih..
kok saya mau ubah ukuran tabel tampil.php ga bisa ya..? padahal udah diganti2 lohh table width+heightnya..
berikut source codenya <!DOCTYPLE HTML> <html> <head> </head> <body> <?php include "koneksi.php"; $sql = "SELECT * FROM modsec"; $res=mysql_query($sql,$koneksi) or die(mysql_error()); ?>
<table border='1' width='50%' height='50%' cellpadding='3' cellspacing='0' style='border-collapse:collapse'> <tr align='center'> <th width='30%'>id</th> <th width='30%'>ip</th> <th width='50%' height='30'>Date</th> <th width='10%'>Time</th> <th width='10%'>handler</th> <th width='4%'>get</th> <th width='4%'>host</th> <th width='10%'>mod_security_message</th> <th width='10%'>mod_security_action</th> </tr> <?php $i = 1; while ($data = mysql_fetch_array($res)){ if($i%2==0) $bg = '#CCCCCC'; else $bg = '#FFFFFF'; echo "<tr bgcolor = '".$bg."'> <td align='center'>".$i."</td> <td>".$data["ip"]."</td> <td>".$data["date"]."</td> <td>".$data["time"]."</td> <td>".$data["handler"]."</td> <td>".$data["get"]."</td> <td>".$data["host"]."</td> <td>".$data["mod_security_message"]."</td> <td>".$data["mod_security_action"]."</td> </tr>"; $i++; } ?> </table> <?php include "koneksi.php"; $sql="SELECT*FROM modsec"; $res=mysql_query($sql,$koneksi) or die (mysql_error()); ?> <form action="pre.php" method="POST"> Laporan : <input type="radio" name="laporan" value="Harian">Harian <input type="radio" name="laporan" value="Bulanan">Bulanan </br><input type="date" name="lapor"> </br> <input type="submit" name="tampil" value="TAMPIL"> </form> <h5>Lookup an IP address or domain name</h5> <form action="IP_locator.php" enctype="multipart/form-data" name="search_form" id="search_form" method="get"> <input type="text" value="" id="query" name="ip" /><input type="submit" value="GO" /> </form> <br> </br> </br> </body> </html> |
| | demikian COntoh tampilannya |
| | knapa ya gak mau jadi lebar table datenya? mohon bantuan gan | | |
|
Tidak ada komentar:
Posting Komentar