![php](https://habrastorage.org/r/w120/files/373/e8b/dd3/373e8bdd3cb644d3bbeba47d34d1876d.png)
PHP
- 7 ответов
- 0 вопросов
5
Вклад в тег
<div id="diver"></div>
<div id="diver"></div>
<div class="diver"></div>
<div class="diver"></div>
$('.diver').hide();
class MySQL
{
public function connect()
{
// code...
}
}
class Page
{
protected $mysql = null;
public function __constuct()
{
$this->mysql = new MySQL;
}
public function view($id)
{
$this->mysql->where($id);
}
public function delete($id)
{
$this->mysql->delete($id);
}
}
$page = new Page;
$page->view($id);
$page->delete($id);