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/ | |
 | Manage your social media
Best social media tool for image publishing to Facebook and Twitter. Look amazing and delight your followers. Get 40% off when you sign up today.  | From our sponsors | | |
saya mau tanya kenapa data hasil pencarian tidak m... Sep 17th 2013, 01:19, by Ardian Saputra | saya mau tanya kenapa data hasil pencarian tidak muncul <? include('koneksi.php'); $cari=$_POST['cari']; if(!empty($cari)){ ?><p align="center"><strong>HASIL PENCARIAN</strong></p> <p><? $qry=mysql_query("SELECT * FROM artikel WHERE judul LIKE '%$cari%'"); $totalseluruhpendaftar=mysql_num_rows($qry); if($totalseluruhpendaftar=='0'){ echo "</p><center><blink>Sorry ! Data empty</blink></center>"; } else { echo "Total hasil pencarian <b>$totalseluruhpendaftar</b> Data"; } ?> <? while($hasil=mysql_fetch_array($qry)){ ?> <? } ?> <table width="98%" border="0" cellpadding="5" cellspacing="1"> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><b><a href="?page=next&&id=<?=$hasil[id_artikel]?>"><?=strtoupper($artikel1[judul])?></a></b></td> </tr> <tr> <td align="left" valign="top" bgcolor="#FCFCFC"><?=substr($hasil[isi],0,400)?></td> </tr> <tr> <td align="right" valign="top" bgcolor="#FFFFFF">Post by : <?=$hasil[penulis]?> | <a href="?page=next&&id=<?=$hasil[id_artikel]?>">Baca Selengkapnya...</a> </td> </tr> </table><hr> <? } ?> <style type="text/css">hr{border-style: dotted; border-color: #CCCCCC;} </style> |
| | coba ente buang perintah <? } ?> yang pertama | | |
|
Tidak ada komentar:
Posting Komentar