own3mall 9 лет назад
Родитель
Сommit
809f093945
2 измененных файлов с 9 добавлено и 1 удалено
  1. 8 0
      EHCP/db_functions.php
  2. 1 1
      EHCP/delAccount.php

+ 8 - 0
EHCP/db_functions.php

@@ -35,6 +35,14 @@
 		}
 	}
 	
+	function getSQLRowArray($Result){
+		if(function_exists("mysql_fetch_row")){
+			return mysql_fetch_row($Result);
+		}else{
+			return mysqli_fetch_row($Result);
+		}
+	}
+	
 	function escapeSQLStr($str, $connection){
 		if(function_exists("mysql_real_escape_string")){
 			return mysql_real_escape_string($str);

+ 1 - 1
EHCP/delAccount.php

@@ -29,7 +29,7 @@ if (!isset($userToDelete)) {
 	$Result = execSQL($SQL, $connection);
     
     if ($Result !== FALSE) {
-		$row = getSQLRow($Result);
+		$row = getSQLRowArray($Result);
         $unameDeleted = $row[0];
     }