mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
15 lines
288 B
PHP
15 lines
288 B
PHP
<?
|
|
|
|
class Db{
|
|
public static function GetLastInsertedId(){
|
|
return $GLOBALS['DbConnection']->GetLastInsertedId();
|
|
}
|
|
|
|
public static function Query(string $query, $args = []){
|
|
if(!is_array($args)){
|
|
$args = [$args];
|
|
}
|
|
|
|
return $GLOBALS['DbConnection']->Query($query, $args);
|
|
}
|
|
}
|