Skip to content

Commit 053e2e6

Browse files
author
Max Base
authored
Add selectsRaw()
1 parent ca374c7 commit 053e2e6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/phpedb.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ public function selectRaw($query)
8181
error_page($e->getMessage());
8282
}
8383
}
84+
public function selectsRaw($query)
85+
{
86+
try
87+
{
88+
$stmt = $this->database->prepare($query);
89+
$stmt->execute();
90+
return $stmt->fetchAll(PDO::FETCH_ASSOC);
91+
}
92+
catch(PDOException $e)
93+
{
94+
error_page($e->getMessage());
95+
}
96+
}
8497
public function query($query,$error=true)
8598
{
8699
try

0 commit comments

Comments
 (0)