<?php
abstract class aDB{
/*
*??????? ???? ?? ???? ?? ??? ????
*/
abstract public function conn();
?? ?? ?? query();
// ?? ?? ?? getAll(); Mysql? aDB? ?????{
public $link;
/*
*??????? ???? ?? ???? ?? ??? ????
?? ?? conn(){
include 'config.php' ;
$this->link = new mysqli($cfg[' ???'], $cfg['???'], $cfg['pwd'], $cfg['db']);
}
?? ?? ??($sql){
return $this->link->query($sql);
}
// ?? ?? getAll($sql){ // $ res = $this->query($sql); // var_dump($res); // }}
$mysql = new Mysql();
$mysql->conn();
?>