}
}
public function fetch_array($result='')
{
if($this->result){
return mysql_fetch_array($this->
result);
}else{
return mysql_fetch_array($result);
}
}
public function findall($table, $field
= '*') {
return $this->query("SELECT $field FROM
$table");
}
public function delete($table,
$condition) {
return $this->query("DELETE FROM $table
WHERE $condition");
}
public function insert($table, $field,
$value) {
return $this->query("INSERT INTO $table
($field) VALUES ('$value')");
}
public function update($table,
$update_content, $condition) {
return $this->query("UPDATE $table SET
$update_content WHERE $condition");
}
public function insert_id() {
return mysql_insert_id();
}
public function num_rows() {
if ($this->result == null) {
if ($this->show_error) {
$this->show_error('SQL
', '
query()
,
');
}
} else {