Skip to content

Commit 0a7e60a

Browse files
author
leewoodman
committed
Update class.MySQL.php
1 parent ec3d9af commit 0a7e60a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

class.MySQL.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ function ExecuteSQL($query){
121121
$this->records = @mysql_num_rows($this->result);
122122
$this->affected = @mysql_affected_rows($this->databaseLink);
123123

124-
return true;
124+
if($this->records > 0){
125+
$this->ArrayResults();
126+
return $this->arrayedResult;
127+
}else{
128+
return true;
129+
}
125130

126131
}else{
127132
$this->lastError = mysql_error($this->databaseLink);

0 commit comments

Comments
 (0)