Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b043850

Browse files
Merge pull request #29 from leewoodman/patch-1
Update class.MySQL.php [Thank you!]
2 parents ec3d9af + 0a7e60a commit b043850

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎class.MySQL.php

Lines changed: 6 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /