Load page with a selected record
I have a PHP page linked to a mySql database with 2 recordets. The first presents a simple list of records that then link to the presentation of details of those records in a table below it. All works fine but on page load the details table is, of course, a blank shell until the user clicks on the linked url in the list that loads the record into the table.
I'd like the page to load with a sample record in it so that it looks better - preferably a random record but if not then the first in the list. What's the simplest way to achieve that?
