Try something like:
SELECT your_columns FROM your_table
WHERE Company like '% wine %'
OR Company = 'wine';
This would give all matches for " wine " or "wine"
Not the best I know but it may work in your situation.
- Scott
> I'm trying to do a search-engine that searches for "whole words only"
> Example:
>
> There are 3 companies in the database:
> 1. WineMaster
> 2. Taste of Wine
> 3. There is some wine in the garden
>
> The table is called tbCompanies, and have the field Company.
>
> How do I select-statement that searches for Wine and gives the recordset of company
>2 and 3 (where wine is a separate word)
>
>
> /Gustav Wiberg
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php