Explorar o código

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

Mark Crane %!s(int64=12) %!d(string=hai) anos
pai
achega
b87d9bbddc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sql_backup.php

+ 1 - 1
sql_backup.php

@@ -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";