include/classes/transaction.class.php 1 location
|
@@ 249-256 (lines=8) @@
|
246 |
|
**/ |
247 |
|
public function getTypes() { |
248 |
|
$stmt = $this->mysqli->prepare("SELECT DISTINCT type FROM $this->table"); |
249 |
|
if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result()) { |
250 |
|
$aData = array('' => ''); |
251 |
|
while ($row = $result->fetch_assoc()) { |
252 |
|
$aData[$row['type']] = $row['type']; |
253 |
|
} |
254 |
|
return $aData; |
255 |
|
} |
256 |
|
return $this->sqlError(); |
257 |
|
} |
258 |
|
|
259 |
|
/** |
include/classes/user.class.php 1 location
|
@@ 687-693 (lines=7) @@
|
684 |
|
FROM " . $this->getTableName() . " AS a |
685 |
|
WHERE a.username LIKE ? |
686 |
|
GROUP BY username"); |
687 |
|
if ($this->checkStmt($stmt) && $stmt->bind_param('s', $filter) && $stmt->execute() && $result = $stmt->get_result()) { |
688 |
|
while ($row = $result->fetch_assoc()) { |
689 |
|
$aData[$row['id']] = $row['username']; |
690 |
|
} |
691 |
|
return $aData; |
692 |
|
} |
693 |
|
return false; |
694 |
|
} |
695 |
|
|
696 |
|
/** |