Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple values in MySQL where statement?

Status
Not open for further replies.

demiancurran

Programmer
Sep 20, 2006
19
CA
Hey there, I am trying to populate a loop using the following.
Code:
<cfquery name="notice" datasource="#DSN_DATASOURCE#" username="#DSN_USERNAME#" password="#DSN_PASSWORD#">
Select    *
From	  notice
Where 	id = "1,5,7"
</cfquery>
The problem is the 1,5,7 obviously. This info is coming through the url.id and I need to be able to loop through 1,5,7. Is there a way to do this?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top