Tom Denmark wrote:
> Since 8.02 I cannot use LIKE '%' on integers.
>
> Does anyone how to get this working?
Yes, select "Text" as the data type instead of "Numeric".
LIKE is a pattern comparison operator that requires a string,
and all
strings must be wrapped in quotes. If you select "Text",
Dreamweaver
escapes any control characters and wraps the string in quotes
before
presenting it to MySQL. If you select "Numeric", Dreamweaver
looks for
an integer and presents it to MySQL without quotes. If you
use a
wildcard, such as % or _, Dreamweaver suspects a SQL
injection attack
and replaces the number with 0.
Although it may seem counter-intuitive, Dreamweaver 8.0.2 is
treating
LIKE correctly.
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/