Update gnuboard.dbt.php

This commit is contained in:
Namhyeon Go 2018-04-11 01:55:50 +09:00 committed by GitHub
parent 36e64531d1
commit 70a8c95d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,21 @@ if(!function_exists("gnb_write_post")) {
}
}
if(!function_exists("gnb_set_post_parameters")) {
function gnb_set_post_parameters($tablename, $wr_id, $bind=array()) {
$flag = false;
$excludes = array("wr_id");
$write_table = gnb_get_write_table($tablename);
$bind['wr_id'] = get_value_in_array("wr_id", $bind, $wr_id);
$sql = "update " . $write_table . " set " . get_bind_to_sql_update_set($bind, $excludes) . " where wr_id = :wr_id";
$flag = exec_db_query($sql, $bind);
return $flag;
}
}
// get member data
if(!function_exists("gnb_get_member")) {
function gnb_get_member($mb_id, $tablename="member") {