mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
#19294297 fixed mysqli insert error
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7933 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
44f179d49f
commit
a23a2e3ab9
1 changed files with 6 additions and 2 deletions
|
|
@ -144,10 +144,11 @@
|
||||||
|
|
||||||
// 쿼리 문 실행
|
// 쿼리 문 실행
|
||||||
$result = mysqli_query($this->fd,$query);
|
$result = mysqli_query($this->fd,$query);
|
||||||
|
|
||||||
// 오류 체크
|
// 오류 체크
|
||||||
$error = mysqli_error($this->fd);
|
$error = mysqli_error($this->fd);
|
||||||
if($error) $this->setError(mysqli_errno($this->fd), $error);
|
if($error){
|
||||||
|
$this->setError(mysqli_errno($this->fd), $error);
|
||||||
|
}
|
||||||
|
|
||||||
// 쿼리 실행 종료를 알림
|
// 쿼리 실행 종료를 알림
|
||||||
$this->actFinish();
|
$this->actFinish();
|
||||||
|
|
@ -445,6 +446,9 @@
|
||||||
$column_list[] = '`'.$name.'`';
|
$column_list[] = '`'.$name.'`';
|
||||||
$value_list[] = $value;
|
$value_list[] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$query = sprintf("insert into %s (%s) values (%s);", implode(',',$table_list), implode(',',$column_list), implode(',', $value_list));
|
||||||
|
return $this->_query($query);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue