Jump to content

Recommended Posts

Hi Guys,

Im having the most awful time trying to get the right results displayed using MySQL and Dreamweaver.
I have 2 pages
Page 1 - is an index page
Page 2 - is a search_results page.

On the index page I have a form, called "searchform" within it I have field called "searchfield". The form finally has a submit button, which I use the post method to send data to the search_results page.

The search_results page, has a recordset created from the rellevant database and I use the following criteria to filter in dreamweaver.

Filter
Search CONTAINS
Form Variable Searchfield

The Search field in MySQL is a TEXT field which copntains an A4 sheet worth of text.

When I run/execute the search on my testing server, the search_results page displays all the entries in the database, regardless whether the word exists in the database. When I created the record set in Dreamweaver and tested it, entering in a test word - this seemed to query the database fine.


Any help would be much appreciated, as Im really scratching my head.

Many Thanks
Link to comment
https://forums.phpfreaks.com/topic/6868-creating-a-basic-recordset/
Share on other sites

Hi Guys,

Not to worry, I've found a workaround to my problem.
Weird though. instead of using my dreamweaver template, I created the recordset with the filter in a blank empty fresh file. This method produced slightly different syntax to the one I was using. Anyways to cut a long story short, I copied an pasted this new syntax in my files and voila it worked.

So far, not very impressed with dreamweaver - Im wondering why it created different syntax for the same instruction.

Cheers
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.