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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:23:07+00:00 2026-06-01T11:23:07+00:00

I am building a webapp with jquery mobile where I need to get data

  • 0

I am building a webapp with jquery mobile where I need to get data from external database and show that data as collapsible content.

<div data-role="collapsible" data-theme="b" data-content-theme="d" data-collapsed="true">
    <?php 


// display the results returned
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    printf('<h3><b> %s </h3> 
    <p> %s <p>',$row["OSO"], $row["AIKA"]);
}


        ?>

How can I make every H3 to appear as a collapsible content title? Now only the first is shown as a title and the rest are in the content section

  • 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-01T11:23:09+00:00Added an answer on June 1, 2026 at 11:23 am

    You should make a new collapsible item for each entry if you want multiple headers…

    <?php 
    // display the results returned
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    ?>
    <div data-role="collapsible" data-theme="b" data-content-theme="d" data-collapsed="true">
       <h3><?= $row["OSO"] ?></h3>
       <p><?= $row["AIKA"] ?><p>
    </div>
    <?php } ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a mobile webapp with jquery mobile. Now what I have. I
Background: I am building a webapp that makes use of JQuery and the Facebook
I am building a webapp using jQuery Mobile and AJAX to pull out SQL
I am building a mobile website that uses the main jquery library and some
I'm building a webapp that needs to interact with a Access Database. The Access
I'm building a webapp with jQuery, which is using many $.get(..) and $.post(..) action-calls
I'm building a webapp that contains an IFrame in design mode so my user's
i am building a webapp that will have notes fields all over the place,
I plan on building a simple, yet high usage webapp and need to settle
I'm building a webapp, and I need the ability for users to view Word/Excel/PPT

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.