$result['sql'] = 'INSERT INTO `base_object` (`base_type`,`creator`,`time_create`,`name`,`description`,`type`) VALUES (1,'.$_SESSION['account']['id'].',NOW(),\''.$params['name'].'\',\''.$params['description'].'\','.$params['type'].')';
这是我的SQL语句,因为name description是varchar类型的,所以必须是字符串形式。所以,我要在每次传参的时候再参数上就是name description上加上单引号。。求解....