php 多选按钮写入数据库的方法

php爱好者提供源码
mysql语句
前台页面:

               提高求职技能

               提高求职技能

               提高求职技能
php页面:
选择数据库,数据表。
然后写
$shouhuoa=implode(',',$_POST['delId']);

insert into 表名 (字段名)VALUES(要写入的内容);

读取用:

$xiangmus=array();
$xiangmus=explode(",",$r['xiangmu']);
?>

你可能感兴趣的:(PHP)