0

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)); ?>
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by fxm
0

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.

Edited by fxm: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.