Home  >  Article  >  Backend Development  >  PHP怎么写到数据库新表里

PHP怎么写到数据库新表里

WBOY
WBOYOriginal
2016-06-13 12:01:24822browse

PHP如何写到数据库新表里?

本帖最后由 lihui4512z 于 2014-07-03 08:31:16 编辑



车辆选择:



while (!!$_rows = _fetch_array_list($_result2)){
?>




" value="正常" style="zoom:150%;" />正常
" value="不正常" style="zoom:150%;" />不正常

}?>




数据量不大,就是一个简单车辆点检系统。我一共建了三张表:驾驶员、车辆信息、点检项目。这三张表是单独维护的。      现在点检的时候,如图,我需要一个驾驶员登陆(即工号)对某一辆车进行点检,最后将点检结果存到一张新表(点检记录表)里,也就是把21条记录重新存一遍,同时多了“状态”这一记录。

现在问题就是,图上所有的数据都是动态的(从之前的三张表中获取的),我不知道写什么代码可以把他们全部存到点检记录表里。

求代码示例,谢谢! radio的name貌似也不能这样写,请指教。
------解决方案--------------------
页面的数据,可以放在隐藏域,当你提交,服务端获取隐藏域的值。


while (!!$_rows = _fetch_array_list($_result2)){
?>
bh[]" type="hidden" value=""/>
  xm[]" type="hidden" value=""/>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn