Dzięki
<?php class mysql { public $row; public function __construct(){ $this->open = mysql_connect('localhost', 'root', 'root') or die("Nie udło się połczyć z serwerem " .mysql_error()); $this->db = mysql_select_db('test', $this->open) or die("Nie udło się połczyć z bazą danych " .mysql_error()); } function query($sql){ } function newtable($name, $pola){ $this->query("CREATE TABLE $name ($pola)"); } function insert($gdzie, $pola, $co){ $this->query("INSERT INTO $gdzie ( $pola ) VALUES ( $co )"); } function delete($skad, $co){ $this->query("DELETE FROM $skad WHERE $co"); } function update($co, $dane, $gdzie){ $this->query("UPDATE $co SET $dane WHERE $gdzie"); } function select($co, $tabela, $gdzie){ $this->query("SELECT $co FROM $tabela WHERE $gdzie"); } function fetch($co, $tabela, $gdzie){ } public function __destruct(){ } } ?>