require_once '../../../common/php/uploadFiles.php'; require_once '../../../common/php/regexTool.class.php'; require_once './model.php'; session_start(); $param = $_REQUEST; $VP = new M('vote_project'); $db = new DB(); $regex = new regexTool(); //print_r($VP->gets()); //根据请求进行数据操作 switch (@$param['type']) { case 'add': add_(); break; case 'updateOK': update_(); break; case 'update': getOne(); break; case 'list': list_(); break; case 'delete': delete_(); break; case 'openvalid': openvalid(); break; case 'closevalid': closevalid();
function update($data, $table, $db = G5_MYSQL_DB) { return update_($data, $table, $db); }