Beispiel #1
0
	function SelectWhere($table, $wherefield, $wherevalue) {
		$this->db->where($wherefield, $wherevalue);
		$query = $this->db->get($table);
		$results = array();
		foreach ($query->result() as $row)
		{
			$results[] = (array)$row;
		}
		return $results;
	}