Php System attachment storage and display problems! 1

Source: Internet
Author: User
Php System attachment storage and display problems !!!!!!!!! 1. I recently developed a news and publishing system. In the background, I uploaded two images to the specified directory on the server by using cyclic upload, but the problem occurred: during the first cyclic upload, the attachment name is stored in the filename field of the database. during the second loop, the name of the second attachment cannot be stored in the filename field, what should we do ????????????? Only one name can be saved for one field. & nbsp; & nbs php System attachment storage and display problems !!!!!!!!! 1
I recently developed a news and publishing system. I used circular upload in the background to upload two images to the specified directory on the server. However, the problem occurs: the first circular Upload.

The attachment name is stored in the filename field of the database. during the second cycle, the name of the second attachment cannot be stored in the filename field. how can this problem be solved?

What about ????????????? Only one name can be saved for a field.



Then, how do I display two attachments when the name of an attachment is displayed on the news page? Currently, only one attachment name can be displayed for download.

------ Solution --------------------
You can use commas to connect and insert them together.
------ Solution --------------------
This is the fastest. Otherwise, you can use multiple fields to store multiple names. What do you think is better?
------ Solution --------------------
A jian Image table.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.