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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:33:23+00:00 2026-06-15T17:33:23+00:00

I have a page set up with a large block in the middle, where

  • 0

I have a page set up with a large block in the middle, where I plan to display data relevant to the category selected from the tabs. I would like this data to auto-populate and paginate based on how many instances of relevant data there is.

I would also like to set it up so that when you have a tab selected, the background image blends into the large block, whereas the unselected tabs have graphics that clearly arent a piece of the same block.

I have the artwork all created, my html template ready to go, I just happen to be out of the loop programming wise by about 4-6 years. So I’m a bit lost on how to:

A) Create the relevant data stream, and format it.

B) Have the tabs reflect which category is selected.

I have this for the tab section in code:

<tr>
    <td background="images/LeftSideSpacer3.png" width="20" height="32"></td>
    <td background="images/LeftSideButtonSpacer.png" width="14" height="32"></td>
    <td background="images/LeftSideButtonSpacer2.png" width="2" height="32"></td>
    <td background="<?php tabStatus(); ?>" width="65" height="32">
        <a href="<?php $href=$CategoryTitle; ?>?<?php echo $href; ?>" name="<?php $SectionName='Hunter'; ?>Hunter" onClick="<?php $CategoryTitle='Hunter'; ?>">Hunter</a>
    </td>
    <td background="images/ButtonSpacer.png" width="3" height="32"></td>
    <td background="images/TabOff.png" width="65" height="32"></td>

Where tabStatus() calls a predefined function in my header:

function tabStatus() {
    if ($SectionName == $CategoryTitle) {
        return "images/TabOn.png";
    }
    else {
        return "images/TabOff.png";
    }
}

None of this works, which brings me back to being lost. And 4 hours googling and searching hasnt helped me much.

  • 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-15T17:33:23+00:00Added an answer on June 15, 2026 at 5:33 pm

    I assume you fetch your data from an sql database or anything similar.
    In that case you can just iterate over the object containing your data and print it in a HTML context, like:

    foreach($data as $value)
    {
        // This is supposed to be the resulting HTML string for every data value
        echo "<td>" . $value . "</td>"; 
    }
    

    This will result in a static HTML page containing your data. With every client request a new page will be constructed, depending on the request.

    In case you want a more dynamic approach, loading data into your site afterwards, have a look here
    http://verido.dk/index.php/ressourcer/artikler/loading-and-saving-data-dynamically-using-php-jquery-and-mysql/

    If you have any further problems, please be specific in your question. That will result in better answers. If you need general help with your programming stuff, you can better ask it on a forum (instead of StackExchange).

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

Sidebar

Related Questions

I have fairly large set of data returned via AJAX from a page. This
I have a page set up to show only posts from one category, which
I have a large set (around 100) of page elements that I would like
I have a relatively large set of data that lends itself very naturally to
I have a page that uses jQuery tabs to tabify a set of HTML
I have a result set I pull from a large database: $result = mysql_query($sql);
I recently discovered that when you have a page set to session readonly and
I have a promotional Facebook page set up which anyone is allowed to comment
I have a page a query that will set a table to 0 or
I have a page where the body is set to a background colour. 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.