mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Convert newsletter to use Users table as base
This commit is contained in:
parent
b48a788430
commit
011cd747f1
34 changed files with 444 additions and 307 deletions
|
@ -6,6 +6,7 @@ class DbConnection{
|
|||
private $_link = null;
|
||||
public $IsConnected = false;
|
||||
public $QueryCount = 0;
|
||||
public $LastQueryAffectedRowCount = 0;
|
||||
|
||||
public function __construct(?string $defaultDatabase = null, string $host = 'localhost', ?string $user = null, string$password = '', bool $forceUtf8 = true, bool $require = true){
|
||||
if($user === null){
|
||||
|
@ -160,6 +161,8 @@ class DbConnection{
|
|||
private function ExecuteQuery(PDOStatement $handle, string $class = 'stdClass'): array{
|
||||
$handle->execute();
|
||||
|
||||
$this->LastQueryAffectedRowCount = $handle->rowCount();
|
||||
|
||||
$result = [];
|
||||
do{
|
||||
try{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue