close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

reading specific record

Thread began 8/20/2016 3:08 pm by software.current355386 | Last modified 8/26/2016 5:26 pm by Ray Borduin | 550 views | 3 replies |

software.current355386

reading specific record

it possible to read a specific record in database and display fields associated with that record

Sign in to reply to this post

Ray BorduinWebAssist

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)); ?>

Sign in to reply to this post

software.current355386

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

Sign in to reply to this post

Ray BorduinWebAssist

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?

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...