mirror of
https://github.com/vrana/adminer.git
synced 2026-07-01 00:09:00 +02:00
Rename get_dbh to connection
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1124 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -4,8 +4,8 @@ function dump_table($table) {
|
||||
}
|
||||
|
||||
function dump_data($table, $style, $select = "") {
|
||||
global $dbh;
|
||||
$result = $dbh->query(($select ? $select : "SELECT * FROM " . idf_escape($table)));
|
||||
global $connection;
|
||||
$result = $connection->query(($select ? $select : "SELECT * FROM " . idf_escape($table)));
|
||||
if ($result) {
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
dump_csv($row);
|
||||
|
||||
Reference in New Issue
Block a user