Sfoglia il codice sorgente

Fix the sql query backup tool so that it will work for mysql.

Mark Crane 12 anni fa
parent
commit
eab386f3aa
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      sql_backup.php

+ 3 - 2
sql_backup.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2012
+	Portions created by the Initial Developer are Copyright (C) 2008-2013
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -69,7 +69,8 @@ else {
 	$prep_statement->execute();
 	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
 	foreach ($result as &$row) {
-		$table_name = $row['name'];
+		$row = array_values($row);
+		$table_name = $row[0];
 
 		//get the table data
 			$sql = "select * from $table_name";