<?php

namespace framework

class Database {
	
	public function conect($dsn){
	}
	private function executeSql($sql){
	}
	public function insert ($table, $fields, $datas){
		$this->executeSql("INSERT INTO {$table}(". implode(',',$fields).") VALUES (". implode(',',$datas).");");
	}
	public function update($table, $fields, $datas){
		$this->executeSql("UPDATE {$table} SET ------ = ------- WHERE id = {$id}");
	}
	public function delete($table, $id){
		$this->executeSql("DELETE FROM {$table} WHERE id = {$id}");
	}
	public function select($table, $fields, $where){
		$this->executeSql("SELECT FROM {$table} WHERE id = {$id}");
	}	

}

?>

<?php

namespace framework

class Database {
	
	public function conect($dsn){
	}
	private function executeSql($sql){
	}
	public function insert ($table, $fields, $datas){
		$this->executeSql("INSERT INTO {$table}(". implode(',',$fields).") VALUES (". implode(',',$datas).");");
	}
	public function update($table, $fields, $datas){
	}
	public function delete($table, $id){
	}
	public function select($table, $fields, $where){
	}	

}

?>

Revert "Segunda Tentativa - Funções"
Revert "Segunda Tentativa - Funções"

This reverts commit 167ae524b3e5a3e25540d123cc2b9535df9453bb.
