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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:11:15+00:00 2026-06-04T10:11:15+00:00

I need to access particular fields of a content type so that I can

  • 0

I need to access particular fields of a content type so that I can sort and display what I want accordingly. I do not have the Views module available because I do not have installation permissions, so I have to do this with a query and some php magic.

I received some very helpful information about the table names of fields for Drupal 7, but it appears that the organization/conventions for field values and where they are stored has changed since 6.

I found out in Drupal 7 that each content type field is stored in its own separate table. Assuming I had a field which I called group, the table name would be “field_data_field_group.”

However, when I attempt to use this convention on my Drupal 6 site, it says this table does not exist.

My question is what is the name of the table fields are stored in? Or is it a completely different system than Drupal 7? Thanks for taking a look.

  • 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-04T10:11:17+00:00Added an answer on June 4, 2026 at 10:11 am

    For Drupal 6, look in the following couple of places:

    1. In the Drupal 6 database, look for a table that’s called content_[your_field_name], for example, content_field_brief_description. Do a SELECT * to see what rows you have for that field table, if it exists.

    2. Look for a table called content_type_[your_content_type], for example content_type_resource. Do the same with that table and see if you get any columns in that one for fields, other than the title/body that may be associated with that content type.

    Let us know if that worked!


    Edit:

    Sample code:

    $result = db_query("SELECT * FROM {table_name}");
    while ($row = db_fetch_array($result)) {
       // do something like drupal_set_message(var_dump($row));
    }
    

    Keep the curly brackets as are, but just replace that with the table name you’re using at the moment…

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

Sidebar

Related Questions

I have two different modules that need access to a single file (One will
I need access to the uint64_t typedef from stdint.h in some wrapper code that
I know that's bad design, but I need access to the view from my
I need to access the commandline from within a C# application. I can't find
I need to access a RESTful server, which is not created with WCF. For
i need to access folder in project .I have used Directory.CurrentDirectory and it is
I have various database fields that are decrypted using the to_python method. The problem
I want to ensure that a user editing a particular model is saved in
I've got a HTML page containing elements that I need to access using JQuery.
How can I read any type of file from a location and access only

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.