Fix the sql query backup tool. Tested with postgres and sqlite.

This commit is contained in:
Mark Crane
2013-02-23 02:54:41 +00:00
parent 7e160b34f2
commit 833b111afc

View File

@@ -63,7 +63,7 @@ else {
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {
$table_name = $row[0];
$table_name = $row['name'];
//get the table data
$sql = "select * from $table_name";