Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9158507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:15:46+00:00 2026-06-17T13:15:46+00:00

I have a form that uploads pdf documents to a table, let’s say ‘tbl_documents_one’.

  • 0

I have a form that uploads pdf documents to a table, let’s say ‘tbl_documents_one’. I am using Uploadify to upload those documents which is not a problem for now.

The problem is that I’m new to PHP and am lagging a bit on best practices.

What would be the best practice to link the current form’s table to the documents table. Current form is not submitted yet and the documents would be submitted beforehand, I’d like to make it so that that record of current form would be linked to the documents it contains.
Any way to set up the documents table and the id that would link these two tables and what if the document records are added but never given a proper link or updated.

I’m actually using an Codeigniter 2 rig.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:15:48+00:00Added an answer on June 17, 2026 at 1:15 pm

    The simple solution for that as far as i understand that you are uploading documents and than submitting form. When you upload documents create a table for these documents which will contain id and nam e and link of that uploaded file.

    documents : id , title(of document)  , link , status
    

    Than in the form fetch this table data and let user select one document for each form. Your query should contain a flag here Status. if status is set to 1 it means this has already been linked to a form. The default value for this status should be 0. Than query should fatch all those records where status is 0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple form that uploads a selected file using Apache Commons Upload
I have a simple form that uploads an image to a database. Using a
I have a form that is using .change() and .submit() to upload a photo
I have an upload form that uploads mp3s to my site. I have some
I have a following problem, I have HTML form that uploads a file with
I have an upload form that takes a user about 30 min. to complete.
I am new to Jquery. I have an upload form that when something is
I have a method set up that uses jquery form for a file upload
I have a form that allows uploads of images. The user can select which
I have been working on making a form that uploads an image through ajax

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.