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/ | |
|
master master nanya dong kalo error Warning: mys... Sep 20th 2013, 01:27, by Kanda Arief Susanto | master master nanya dong kalo error
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\data\fungsi\backup\dump.php on line 16
cupilkan code : while ($data = mysql_fetch_row($hasil)) { echo "<tr><td><input type='checkbox' name='tabel[]' value='".$data[0]."'></td><td>".$data[0]."</td></tr>"; } echo "</table><br>";
di xampp 1.8.2 knapa ya tapi di 1.7.1 g masalah |
| | coba mysql_fetch_row ganti dengan mysql_fetch_array $data[0] ganti dengan $data[nama field yg ada di table] |
| | belum bisa mas aris
<?php // membaca file koneksi.php include "koneksi.php";
echo "<h1>Dump MySQL</h1>"; echo "<h3>Nama Database: ".$dbName."</h3>"; echo "<h3>Daftar Tabel</h3>";
// query untuk menampilkan semua tabel dalam database $query = "SHOW TABLES"; $hasil = mysql_query($query);
// menampilkan semua tabel dalam form echo "<form method='post' action='proses.php'>"; echo "<table>"; while ($data = mysql_fetch_array($hasil)) { echo "<tr><td><input type='checkbox' name='tabel[]' value='".$data[0]."'></td><td>".$data[0]."</td></tr>"; } echo "</table><br>"; echo "<input type='submit' name='submit' value='Backup Data'>"; echo "</form>";
?> | | |
|
Tidak ada komentar:
Posting Komentar