CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 sql where in

Print topic Send  topic

Author Message
badjao
Posted: 06/27/2003, 1:33 AM

is it possible to do this SELECT * FROM couneduc
WHERE PID IN (#PreserveSingleQuotes(FORM.S_PID)#) with code charge and coldfusion?
i have a form with checkboxes i want my grid to return all the rows that match the PID's of the values in checkbox and send a request like this one.

http://localhost/phil/?S_pid='023100000','021500000'
rrodgers
Posted: 06/27/2003, 3:06 PM

You don't say what you are using.

In CCS/ASP I add an code to the event BeforeBuildSelect

dim s
s = PlayerSearch.s_TeamSysID.Datasource.Where
If Len(Trim(s)) > 0 Then
s = "(" & s & ") AND "
End IF
s = s & " Mycolumn in ( " & xInStmt & ")"

PlayerSearch.s_TeamSysID.Datasource.Where = s
badjao
Posted: 06/29/2003, 7:29 PM

i'm using coldfusion can anyone help me out?

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.