Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Dec. 11, 2013, 9:56 p.m.
FORMAT:
Text only
SIZE:
468 Bytes
Raw
Download
Tweet
HITS:
795
Go to comments
Report
if (!($db=new SQLite3('../path/db.sqlite3', 0666))) {
echo "<h2>error</h2>";
die();
}
$query = $db->query("SELECT name FROM sqlite_master
WHERE type='table'
ORDER BY name;");
$result = $query->fetchArray(SQLITE3_ASSOC);
echo "<pre><p>tables</p>";
print_r($result);
echo "</pre>";
foreach ($result as $key => $value) {
if ($value == 'blocks') {
$has_blocks = 1;
}
}
$db->close();
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus