dongrong9053 2015-07-03 20:14
浏览 51

将图像上传到数据库php

I have a doubt.. I´m doing in php a page to buy and sell cars, and I have a form that has 5 input files(one for each image). The question is: Do I have to do 5 times the same file to upload each image separately or with one file that executes the code for the 5 images it´s ok?

  • 写回答

2条回答 默认 最新

  • dsfphczao23473056 2015-07-03 20:21
    关注

    You can assign each files with an id from 1-5. Like this $_FILES['filename']['#id'] and then use a for loop to upload them from 1-5. Hope this helps. There is a similar question here. Multiple image upload using php

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?