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 | | |
[ask] ada yang tau letak kesalahannya dimana.... s... Aug 19th 2013, 02:17, by Muhammad Zamrony | [ask] ada yang tau letak kesalahannya dimana.... soalnya dari kemarin nggak bisa terus.>>>>?? thanks
<!DOCTYPE HTML> <html> <head> <title>Membaca Data</title> </head> <body> <?php //koneksi database $conn = mysql_connect("localhost","root",""); mysql_select_db("contac"); //membuat query select $sql = "select * from tb_contac"; //membaca data $hasil = mysql_query($sql); ?> <table border="2" cellpadding="5" cellspacing="0"> <tr> <th>Nama</th> <th>Email</th> <th>Komentar</th> </tr> <?php //menampilkan data ke user dengan fungsi mysql_fetch_array() while($row = mysql_fetch_array($hasil)){ ?> <tr> <th><?php echo $row['nama']; ?></th> <th><?php echo $row['email']; ?></th> <th><?php echo $row['komentar']; ?></th> </tr> <?php}?> </table> </body> </html> |
| | *Errornya apa gan? |
| | mysql_select_db ("contac");
jadi mysql_select_db ("contac",$conn); #cmiiw |
| | ada yg slh mas scriptnya <?php}?> tanpa ada spasi seharusnya ada spasinya <?php }?> | | |
|
Tidak ada komentar:
Posting Komentar