mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
Latest working copy. GUI cleanup. Need to do inputs, outputs, in cube, type codes and etc. need rendering
This commit is contained in:
11
_pdo.php
11
_pdo.php
@@ -50,6 +50,17 @@ function PDO_FetchAll($query, $params=null)
|
||||
}
|
||||
return $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
function PDO_FetchAllAssoc($query, $params=null)
|
||||
{
|
||||
global $PDO;
|
||||
if (isset($params)) {
|
||||
$stmt = $PDO->prepare($query,array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => false));
|
||||
$stmt->execute($params);
|
||||
} else {
|
||||
$stmt = $PDO->query($query);
|
||||
}
|
||||
return $stmt->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP);
|
||||
}
|
||||
function PDO_FetchAssoc($query, $params=null)
|
||||
{
|
||||
global $PDO;
|
||||
|
Reference in New Issue
Block a user