close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot get simple search form to work in DW CS6 on my Mac

Thread began 7/29/2020 11:43 am by randyrie405335 | Last modified 7/30/2020 9:23 am by Ray Borduin | 602 views | 3 replies |

randyrie405335

Cannot get simple search form to work in DW CS6 on my Mac

It's been awhile since I tried using Webassist to build a simple PHP/MySQL search form and cannot get it to work. would you take a quick peek and see what I'm doing wrong? I'm attaching the page.

Sign in to reply to this post

Ray BorduinWebAssist

You are trying to search a recordset with the value from the recordset instead of using the form element.

Instead of:

$rsSeach->bindParam("c", "".($rsSeach->getColumnVal("files"))  ."", "-1xxx"); //varKeyword


it should be:

$rsSeach->bindParam("c", "".(isset($_GET["keyword"])?$_GET["keyword"]:"")  ."", "-1xxx"); //varKeyword
Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

Thanks. That worked but...

How do I make the MySQL search case-insensitive? e.g, the keyword 'bylaws' won't find the file Bylaws.pdf but the keyword 'Bylaws' does. I know it is an issue on a LInux server but I've never had a case sensitivity issue before on my Mac. Since there are several hundred files in the database that are camel-case, I'd like to make the search case-insenestive.

Any ideas on what I might try?

Sign in to reply to this post

Ray BorduinWebAssist

Update the collation value in your table directly for that column. Anything that ends in "_ci" is "case-insensitive".

I usually use: utf8_general_ci

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