多个图像上传到服务器& Databse的名字 [英] Multiple Image Upload to Server & Name to Databse

查看:62
本文介绍了多个图像上传到服务器& Databse的名字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简而言之,我需要一个表格,允许我将多张图片(例如5张)上传到我的服务器,同时将名称保存到MySQL数据库。如果图像名称在上传和输入之前使用MD5或类似名称自动更改,我更喜欢它,但不像我以后可以添加的那么重要。我也想(在同一表格上)添加其他信息的能力。即制作,模型等。


例如:


图片1:[浏览]

图片2:

图片???


制作:

型号????


如果有任何人可以提供帮助我真的会感激它。

What I need in a nutshell is a form that will allow me to upload multiple pictures (say 5) to my server while at the same time saving the names to the MySQL database. I would prefer it if the image name was automatically changed with MD5 or similar before upload and entry, but is not so important as I can add at a later date. I also would like (on the same form) the ability to add other information. i.e. make, model, etc.

Example:

Image 1: [Browse]
Image 2:
Image???

Make:
Model????

If there is anything anyone can do to help I would really
appreciate it.

推荐答案


简而言之,我需要一个表格,允许我将多张图片(例如5张)上传到我的服务器,同时将名称保存到MySQL数据库。如果图像名称在上传和输入之前使用MD5或类似名称自动更改,我更喜欢它,但不像我以后可以添加的那么重要。我也想(在同一表格上)添加其他信息的能力。即制作,模型等。


例如:


图片1:[浏览]

图片2:

图片???


制作:

型号????


如果有任何人可以做任何事情来帮助我真的会赞赏它。
What I need in a nutshell is a form that will allow me to upload multiple pictures (say 5) to my server while at the same time saving the names to the MySQL database. I would prefer it if the image name was automatically changed with MD5 or similar before upload and entry, but is not so important as I can add at a later date. I also would like (on the same form) the ability to add other information. i.e. make, model, etc.

Example:

Image 1: [Browse]
Image 2:
Image???

Make:
Model????

If there is anything anyone can do to help I would really
appreciate it.



Ribbo,

看看这个网站是否有免费的脚本让你入门,多个文件上传表单。我以此为例自己,并在表单中添加了更多字段,以便将信息添加到我的数据库中,然后在for循环中,在文件成功上传后,我执行了数据库INSERT语句。希望有所帮助!

Ribbo,
Check out this site for a free script to get you started, Multiple File Upload Form . I used this as an example for myself and added more fields to the form for information that would be added to my database and then within the for loop and after the file was sucessfully uploaded I did my database INSERT statement. Hope that helps!


谢谢,


我会检查出来:)
Thanks,

I will check it out :)


很遗憾没有有点帮助(也许只是我)

我知道一些基本的PHP和一些高级的PHP。虽然我是非常零散的,因为我是自学成才。


我真的很感谢能够解决我的问题的人。

这是form.html页面
unfortunately that didn''t help to much (maybe its just me)
I know some basic php and some advanced php. Although i am very patchy as i am self taught.

I would be truly grateful to anyone who can resolve my problem.

Here is the form.html page
展开 | 选择 | Wrap | 行号


这篇关于多个图像上传到服务器& Databse的名字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆