Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
*/
public function __construct($host, $username, $password, $dbname)
{
*/
public function __construct($host, $username, $password, $dbname)
{
- $connection = new mysqli($host, $username, $password, $dbname);
- $this->connection = $connection;
+ $this->connection = new mysqli($host, $username, $password, $dbname);
if (!$this->connection->connect_errno) {
$this->connected = true;
if (!$this->connection->connect_errno) {
$this->connected = true;
function is_post_request()
{
if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') {
function is_post_request()
{
if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') {