Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

multiple file upload / inserting image path into database

Featured Replies

Hi

I have already posted a similar question but I thought I'd post what I have managed so far. With the help of a few book I have managed to creat a php file uploading script that will upload images on to my server. But I can not find how to upload multiple file (I can only upload one at atime) also how to save the image path into a table in my mysql database.

I have attachet the php file see below

I need help thanks :wacko:

file_upload_ns.php

Upload_ns.php

Edited by Rhodri

Not sure why you couldn't have just posted this in your original thread as a second post, but anyway

To upload multiple files at once, you need multiple upload fields, all with unique name values. To allow yourself to add/remove boxes you will need to use javascript

As for the paths into the mysql database, you can move the files with move_uploaded_file, so you can then set the file wherever you want, and add that filename to the database

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.