Brad
unread,Jan 3, 2011, 7:17:50 PM1/3/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ColdFusion on Wheels
Happy New Year everyone!
I’m sorry if this is a post on this issue already. I’ve search on
CFWheel Google groups and but didn’t find anything similar to my
problem. This is my first CFWheel application, I’m running CF 8,
CFWheel 1.1.1, and SQL 2000.
The problem is that I’m unable to return anything when using multiple
criteria in the where clause.
This returns zero record.
<cfset supportmenu =
model("menu").findAll(where="categoryGroup='support' and 'show=1",
order="label asc")>
SQL: SELECT
menus.menuID,menus.label,menus.categoryGroup,menus.show,menus.comments,menus.link
FROM menus WHERE menus.categoryGroup = ? ORDER BY menus.label ASC
SQLPARAMETER: array 1 1
This works but it returns all records, I only want to return record
with show being 1.
<cfset supportmenu =
model("menu").findAll(where="categoryGroup='support'", order="label
asc")>
It seem like the show variable name is omitted. I’ve tested the SQL
statement with SQL analyzer and it works fine. Please let me know if
you need any more information. I know it’s probably something I
missed. Any suggestion is much appreciated.
Thank you!