close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Search page pulling in incorrect data

Thread began 2/07/2017 11:37 pm by EmmaMorris | Last modified 3/01/2017 6:21 pm by EmmaMorris | 1538 views | 58 replies

EmmaMorris

On this search results page (the existing one. Eventually I will convert it to your recommendations) if I list the value of the specialties field (the array, say 2,5,10) it obviously lists the values that are stored there. I need a way to convert those to the string values that are in the matching specialtiestbl table. I was trying mysql_fetch_array but am not sure that's the way to go since I already have the list of numbers. If I put the rsMain.specialtiesID on the page it prints the string of numbers..

I am just looking for a list like so: Specialties: Medical, Cardiologist, Internal Medicine etc...
What would be the best way to do that?

Added later:
Worked on this some more.
This prints out the values of the array, numerically with a space in between. Now I just need to translate that to the values in the Specialties table instead of numbers

<?php
$specialtiesArray = explode(",",$rsExpand->getColumnVal("specialtiesID"));
?>

<?php
foreach ($specialtiesArray as $specialty)
echo $specialty.' ';
?>


Thanks.

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