You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
599 B
28 lines
599 B
<?php
|
|
defined('IN_IA') or exit('Access Denied');
|
|
class MemberEnrollData
|
|
{
|
|
|
|
/**
|
|
* 添加
|
|
* @param $data
|
|
* @param $enroll_id
|
|
* @return bool
|
|
*/
|
|
public static function create($data,$enroll_id)
|
|
{
|
|
foreach ($data as $value) {
|
|
$insert = [
|
|
'enroll_id' => $enroll_id,
|
|
'filed_key' => $value['name'],
|
|
'field_value' => $value['value'],
|
|
];
|
|
$result = pdo_insert(PDO_NAME . 'member_enroll_data',$insert);
|
|
if (!$result) return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
|
|
}
|