Home  >  Article  >  Backend Development  >  如何添加2条数据到数据库

如何添加2条数据到数据库

WBOY
WBOYOriginal
2016-06-13 12:36:441092browse

怎么添加2条数据到数据库
怎么添加2条数据到数据,只有$parent_area ,$fparent_area area这个值变化,其它都不变
我这样直接加代码上去,不能添加2条数据,被覆盖了,高手指教了,直接给完整代码谢谢了

                        $insert="insert into `goods_area` (goods_id,city,area,end_time) values ('$id','$city','$parent_area','$endTime')";<br />
                        @mysql_query($insert);<br />
                        $insert="insert into `goods_area` (goods_id,city,area,end_time) values ('$id','$city','$fparent_area','$endTime')";<br />
                        @mysql_query($insert);

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