<?php
abstract class aDB{
/*
* Connect to the database and read configuration information from the configuration file
*/
abstract public function conn();
abstract public function query ();
// abstract public function getAll();
##class Mysql extends aDB{
public $link;
/*
*Connect to the database and read from the configuration file Configuration information
*/
public function conn(){
include 'config.php';
$this->link = new mysqli ($cfg['host'], $cfg['user'], $cfg['pwd'], $cfg['db']);
var_dump($this->link);
}
public function query($sql){
return $this->link- >query($sql);
}
## // public function getAll($sql){
}
$mysql = new Mysql();
Solved, solved, the abstract method does not give parameters, it is too careless