瀏覽代碼

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

Mark Crane 12 年之前
父節點
當前提交
b87d9bbddc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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";