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 8289811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:36:32+00:00 2026-06-08T12:36:32+00:00

I have set up four additional tables for my plugin to use what I

  • 0

I have set up four additional tables for my plugin to use what I am trying to do is take a name and assign it a ID then use this data to populate drop down menus with a name and the same for class and position I am unsure as to how to do this correctly this is what i have so far.

$sql = "CREATE TABLE $tableName (
  recordID int NOT NULL AUTO_INCREMENT,
  PRIMARY KEY(recordID),
  driverID int,
  driverName varchar(30),
  classID int,
  driverClass varchar(20),
  posID,
  driverPosition varchar(6),
  trackName varchar(30),
  raceDate date
);";

$sql = "CREATE TABLE $driverTableName (
  driverID int NOT NULL AUTO_INCREMENT,
  PRIMARY KEY(driverID),
  driverName varchar(30)

);";

$sql = "CREATE TABLE $classTableName (
  classID int NOT NULL AUTO_INCREMENT,
  PRIMARY KEY(classID),
  className varchar (20)

);";

$sql = "CREATE TABLE $posTableName (
  posID int NOT NULL AUTO_INCREMENT,
  PRIMARY KEY(posID),
  posName varchar(6)

);";

The bottom three tables will store the data I want to populate the drop down boxes to create a record with I am unsure as to how to link them to the top table where this record will be stored.

  • 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-08T12:36:34+00:00Added an answer on June 8, 2026 at 12:36 pm

    This is pretty much a indexing issue. If you are going to access the database separately to the standard calls that WordPress provides, you should at the very least use http://codex.wordpress.org/Class_Reference/wpdb as it will save you some coding time.

    The rest of it is a MySQL question. (Assuming you are using MySQL) In how to properly index the data together and then parsing the data as it comes in.

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

Sidebar

Related Questions

I have a set of four ASP.NET roles that I have been trying to
I have an app with four activities. I have set the intent-filter on one
i have four radio buttons , and i want to set a text for
I have set a background on the data-role=page element like so <div data-role=page style=background:
I'm trying to have multiple UIImageView 's each with two buttons - A Take
So i have a set of four points in 3D Space. P1 [0, 0,
I have set my app to update four xml feeds in the background (if
In my UIViewController descendant, I have a set of four blocks. Each block is
I'm trying to create some XML like this: <parameter name=srid type=java.lang.Integer>24729</parameter> notice that the
I'm trying out the new LayoutTransition class in Honeycomb. I have set an animation

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.