close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I want to show search results based on colum value but actually display a friendly name verses the id

Thread began 6/23/2022 1:18 pm by jo271221 | Last modified 7/18/2022 6:26 am by Ray Borduin | 281 views | 5 replies |

jo271221

I want to show search results based on colum value but actually display a friendly name verses the id

This one may be to complicated but - start easy
page.php?incentives=23&pedigree=&credentials=&sire=&Search=Search
23 - Blue Collar Breeders

<?php echo((isset($_GET["incentives"])?$_GET["incentives"]:"")); ?>

I was thinking you had shown me how to 'print' a friendly name but I tried replacing incentives with BCB in each place and it did not work
<?php echo((isset($_GET["incentives"])?$_GET["BCB"]:"")); ?>
<?php echo((isset($_GET["BCB"])?$_GET["incentives"]:"")); ?>

Next Request Blue Collar Breeders is one incentive from a join table, the user may opt to select multiple incentives. Is it possible to display all the incentives a user selects?
page.php?incentives=11&incentives=22&pedigree=&credentials=&sire=&Search=Search
So I'd like to replace 11 and 22 with user friendly names.
Is this possible?

[full page urls in private area]

Sign in to reply to this post

Ray BorduinWebAssist

You can't use $_GET[] to get the friendly name, since it isn't in the url.

You would have to put a recordset on the page and filter it with the $_GET["incentives"] id value to display the associated incentive name from the recordset returned.

You can pass multiple incentives in the url, but you would have to pass them in an array with brackets [] like:
page.php?incentives[]=11&incentives[]=22&pedigree=&credentials=&sire=&Search=Search

Then you could create a recordset to filter based on the array to return the incentive names from the url and use a repeat region to show all of the incentives from the recordset.

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

jo271221

OK, sounds like a task for a support meeting. Please let me know your availability.

Sign in to reply to this post

Ray BorduinWebAssist

I should be available most of the day tomorrow.

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

jo271221

Do you happen to be available tomorrow? I'd like to work on this and also our video embed option on another page.

Sign in to reply to this post

Ray BorduinWebAssist

I'm available today. Just give me a call and we can work out a good time.

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

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