Last active
August 7, 2018 04:47
-
-
Save malikkurosaki/924bbb14f0304d0a6034a70f842d7202 to your computer and use it in GitHub Desktop.
sqlite3 show all table name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new SQLite3("mydb.db"); | |
$perintah = <<<AOD | |
SELECT sql FROM sqlite_master WHERE type="table" | |
AOD; | |
$kerjakan = $db->query($perintah); | |
$table = ""; | |
while($hasil = $kerjakan->fetchArray()){ | |
$table = $hasil; | |
echo "<button>".$table["sql"]."</button><br/> "; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment