Ask a Question related to Dreamweaver AppDev, Design and Development.
-
harrillj #1
Can there be a BOOLEAN in the VALUE of a Selectlist/menu?
Hello,
Trying to figure out the best or rght way to do this. (PHP/MySQL). I have
table that contains a lot of columns in which the value is either 'Yes' or
'No'. I want to create an advanced search page where the user can select
"Yes', 'No', or totally choose to ignore the list menu as a compnent of their
search criteria. The form would have 4 to 5 list/menus. So for one search
the user may select 3 columns from three list/menus, in another search the user
may select 2 columns using just two of the list/menus. I would like to do
this with one form submit.
So.. the issue surrounds the column(s) that the user chooses to ignore. In
other words, the user does not care if the value in the column is "Yes" or
"No". If a user selected from just two of the list menus, the query would need
to compare table colums with the values the user selected from the List/Menu,
such as WHERE column1 = formfield1 AND colum2 = formfield2. But... what
do I do about the other columns that were not selected. For unselected list
menus I really need the query to return rows that have values of "Yes' OR 'No"
in the columns the user didn't care about.
What I was thinking is that each select box should have a default value of
anything, such as, "not selected". Then when the query runs, the values for
any list box that has a value of "not selected" needs to utilize an 'OR' to
returnrows with 'YES' OR 'No' in those columns.
I have no idea if this can be done using a list box. Just tossing it our here
to see if anyone can point me in the right direction.
Thanks
harrillj Guest
-
boolean cfsqltype
Can someone please advise what cfsqltype should I used for boolean (true/false)? I've tried cf_sql_bit, but my results were inconsistent. i.e. ... -
boolean BoundColumn
Hello, I have bound a BoundColumn to a DataGrid, which is linked to a collection whose 1rst element is a bool. The DataGrid then displays... -
Boolean constructor...
Hello, When I instanciate a boolean with a string for an argument, and the display the variable for example var b:Boolean = new Boolean("ASDF");... -
boolean operation
hi all, what is oposite of if ($_periode == NULL || $_periode == "") it is not if ($_periode != NULL || $_periode != "") kind regards -
PHP Boolean Values like ASP
I'm traing to rewrite a part of code i've made in for ASP in PHP. ASP: If moneda = True Then moneda = False Else moneda = NOT moneda End If ...



Reply With Quote

