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/ | |
 | How to Get into Medical School
A tested blueprint to approach the daunting admissions process with both confidence and success! Enroll in this online course for just $29.  | From our sponsors | | |
mas mas,saya sudah dpat menampilkan data dr databa... Aug 17th 2013, 21:32, by Hengki Basarah | mas mas,saya sudah dpat menampilkan data dr database dg combobox berdasarkan kategori..tp kok foto ga bs tampil ya. ini sintaknya .
<Form method="post" id="ford">cari :<input type="text" name="txtsearch"> <select name="kategori"> <option value="">cari berdasarkan</option><option value="nama"> nama </option> option><option value="kategori"> kategori </option></select><input type="submit" value "cari" name="submit"/> <?php if(isset($_post['submit']{ $search=$_post['txtsearch']; $kategori=$_post['kategori']; $sql="select*from t_cagarbudaya where &kategori like '%search%'"; $result=mysql_query($sql) or die ('error,list museum failed. ' . Mysql_error(();
if (mysql_fetch_object($result)== 0){ echo '<p></p><p>pencarian tdk ketemu</p>'; } else { echo '<p></p>'; while ($row = mysql_fetch_object($result)){ array ($row); echo'<table border="0">'; echo'<tr><td><img src=" '.&row->foto.' " /></td>' ; echo' </table>'; echo'<p></p>'; }}} ?>
mohon bantuannya mas ,letak kesalahannya dimana . .sehingga foto ga bs nampil |
| | yg jelas salah: $_post hrs nya $_POST, &kategori hrs nya $kategori, %search% hrs nya %$search%, array ($row) nya buat apaan ya? &row->foto nya apa gak $row->foto?
... | | |
|
Tidak ada komentar:
Posting Komentar