Advertisement
gamamuhammad

backup.php

Jan 17th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?php
  2. // membaca file koneksi.php
  3. include "../include/koneksi_db.php";
  4. include "link.php";
  5.  
  6. echo "<b>Backup Database Perpustakaan</b>";
  7. echo "<br>Nama Database: ".$db_name;
  8. echo "<br><i>Daftar Tabel</i>";
  9.  
  10. // query untuk menampilkan semua tabel dalam database
  11. $query = "SHOW TABLES";
  12. $hasil = mysql_query($query);
  13.  
  14. // menampilkan semua tabel dalam form
  15. echo "<form method='post' action='../utility/proses.php'>";
  16. echo "<table>";
  17. while ($data = mysql_fetch_row($hasil))
  18. {
  19.    echo "<img src='../image/external3.gif'>  $data[0]<br>";
  20. }
  21. echo "</table><br>";
  22. echo "<input type='submit' name='submit' value='Backup Data'>";
  23. echo "</form>";
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement