close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic number of results in search form

Thread began 9/14/2020 10:28 am by Sweens | Last modified 9/15/2020 7:40 am by Ray Borduin | 397 views | 6 replies |

Sweens

Dynamic number of results in search form

Hi Ray

I have a search page which works fine. I'd like to add a elect list where the user can specify the max number of results to be returned in a page.

I notice that the first line of the recordset specifies this:

$WADAresults = new WA_MySQLi_RS("WADAresults",$connDB_i,50);

in this case, 50 records.

I've noticed that other form fields use code such as

echo((isset($_GET["S_FirstName"]))?$_GET["S_FirstName"]:"")

to display the searched criteria.

I've tried to combine the two, without success - is it possible, so it's something like:

$WADAresults = new WA_MySQLi_RS("WADAresults",$connDB_i,echo((isset($_GET["Display"]))?$_GET["Display"]:""));

Is there a better way?

Many thanks

Chris

Sign in to reply to this post

Ray BorduinWebAssist

The correct syntax would be:

php:
$WADAresults = new WA_MySQLi_RS("WADAresults",$connDB_i,((isset($_GET["Display"]))?$_GET["Display"]:50));
Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Thanks Ray

I'll try that - just discovered the Search dialog box comes up empty when I try to edit it! Think I'll need to try an uninstall and reinstall!

Cheers
Chris

Sign in to reply to this post

Sweens

This post has been deleted.

Sweens

No change - still blank. When I uninstalled, it froze after restarting, on 'Step2 removing files - maybe they're causing the problem?

Is there a folder I can delete to start again?

Cheers

Chris

Sign in to reply to this post

Ray BorduinWebAssist

Yes. You don't really have to remove it if you are just reinstalling anyway. If you want you can always delete your user configuration folder and start completely fresh.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Thanks Ray - I'll leave it for another day; too busy to uninstall DW and start from scratch! It only seems to be the search option that freezes.

Cheers

Chris

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...