Is it possible to show the details of each record from the recordset in a show hide way?

Each record would have a title - I need the sliding div to show the relevant info when the title is clicked on.

Don't know if i've made this very clear so have posted the currect code below. At the moment clicking on any record drops down only the very first record.

<?php do { ?>
      <a href="#" onClick="showSlidingDiv(); return false;">
	  <?php echo $row_candidate_details['Title']; ?> | <?php echo $row_candidate_details['Location']; ?></a> <br />
      <div id="slidingDiv">
        <p>		<?php echo nl2br($row_candidate_details['summary']) ?>/</p>
      </div>
      <?php } while ($row_candidate_details = mysql_fetch_assoc($candidate_details)); ?>

Is it possible to show the details of each record from the recordset in a show hide way?

Once the records have been downloaded, that kind of display can be done entirely on the client side with css and javascript.

In situations where the data is available one query/record at a time, however, server-side scripting is more commonly used.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.