Fix the sql query backup tool. Tested with postgres and sqlite.
This commit is contained in:
parent
7e160b34f2
commit
833b111afc
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue