reading specific record
it possible to read a specific record in database and display fields associated with that record
it possible to read a specific record in database and display fields associated with that record
You can access the results from a query as an array with:
$Recordset->Results
So if you want to get a random record from that result set you could just use:
<?php var_dump(array_rand($rsiPupil->Results)); ?>
got it working a treat the problem i have now is if there as been a record deleted from the database say record 4 is missing the result i am now getting a blank result, how do ii check that if exist display otherwise forget
If the record has been deleted then it won't be in the results array. Is the record not being deleted but being cleared of data in the database? I'm not sure the problem you are actually incurring, so I can't advise on how to correct it. Can you give me an example with more details?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.