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

  • SEARCH
  • Home
  • 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 3320238
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:55:10+00:00 2026-05-17T22:55:10+00:00

I built a document upload admin screen, where my client can browse and upload

  • 0

I built a document upload admin screen, where my client can browse and upload pdf documents to a mysql dbase.

I have two separate tables for the Agendas, and one for Minutes. both have separate table names “upload” and “upload_mins”.

on the index.php page, I have the page fetch each row of the database, and display all of the valid documents on a “download” page.

I have come a across a problem.

Each dbase is set to increment ID. now that there is two databases, they are coming to utilize the same ID.

so I am pulling from the Agenda table:

http://www.example.com/clerk.php?ID=77

and I am pulling from the Minutes table also:

http://www.example.com/clerk.php?ID=77

and they happen to have the same increment ID.

Is there some way to avoid this? Can I add a field parameter to the minutes to make sure that they don’t have the same URL when pulling documents?

Create a integer field, or txt field?

i.e. http://www.example.com/clerk.php?ID=77&min=yes

  • 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-05-17T22:55:11+00:00Added an answer on May 17, 2026 at 10:55 pm

    If these are just documents, you could store them in a single table but have a column called type that differentiates between minutes and agendas. That way, IDs will be unique.

    You could also extend the types column be a foreign key to a types table, so you can extend it to include additional document types such as spreadsheets in the future easily.

    This would also aid the front-end display, as you would only need one query to fetch the documents within a batch or timeframe, but add them to differing arrays. For example:

    // get the last 20 uploaded documents
    $sql = "SELECT * FROM documents ORDER BY created DESC LIMIT 0,20";
    $res = mysql_query($sql);
    while ($doc = mysql_fetch_object($res)) {
        $type = $doc->type;
        if (!isset($docs[$type]) || !is_array($docs[$type])) {
            $docs[$type] = array();
        }
        $docs[$type][] = $doc;
    }
    
    // loop over agendas
    foreach ($docs['agendas'] as $agenda) {
        echo '<a href="download.php?id=' . $agenda->id . '">' . $agenda->title . '</a>';
    }
    
    // loop over minutes
    foreach ($docs['minutes'] as $minutes) {
        echo '<a href="download.php?id=' . $minutes->id . '">' . $minutes->title . '</a>';
    }
    
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a new web app that is packaged as a WAR as part
I'm trying to build a C++ extension for python using swig. I've followed the
I'm trying to build a Chrome browser extension, that should enhance the way the
I want to use a temp directory that will be unique to this build.
I am playing with TFS 2010, and am trying to setup a build process
I'm trying to write test harness for part of my Android mapping application. I

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.