summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Db.class.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Db.class.php b/Db.class.php
index fe11d36..9040728 100644
--- a/Db.class.php
+++ b/Db.class.php
@@ -157,7 +157,7 @@ class DB
}
}
/**
- * If the SQL query contains a SELECT statement it returns an array containing all of the result set row
+ * If the SQL query contains a SELECT or SHOW statement it returns an array containing all of the result set row
* If the SQL statement is a DELETE, INSERT, or UPDATE statement it returns the number of affected rows
*
* @param string $query
@@ -171,8 +171,9 @@ class DB
$this->Init($query,$params);
- # The first six letters of the sql statement -> insert, select, etc...
- $rawStatement = explode(" ",$query);
+ $rawStatement = explode(" ", $query);
+
+ # Which SQL statement is used
$statement = strtolower($rawStatement[0]);
if ($statement === 'select' || $statement === 'show') {