PHP数组与MYSQL插入数据的问题
[pic_url]=>Array([0]=>/darkblue_orange/img/logo_levvvft.png[1]=>/darkblue_orange/img/...
[pic_url] => Array
(
[0] => /darkblue_orange/img/logo_levvvft.png
[1] => /darkblue_orange/img/logo_lvveft.png
[2] => /darkblue_orange/img/logo_vvvleft.png
)
[pic_discription] => Array
(
[0] => 67ddd
[1] => 67ddf
[2] => 67fff
)
insert into Table (`id`,`pic_url`,`pic_discription`) Value ('','$pic_url','$pic_discription')
foreach如何写????? 展开
(
[0] => /darkblue_orange/img/logo_levvvft.png
[1] => /darkblue_orange/img/logo_lvveft.png
[2] => /darkblue_orange/img/logo_vvvleft.png
)
[pic_discription] => Array
(
[0] => 67ddd
[1] => 67ddf
[2] => 67fff
)
insert into Table (`id`,`pic_url`,`pic_discription`) Value ('','$pic_url','$pic_discription')
foreach如何写????? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询