Jump to content

fetch the data


Weiss

Recommended Posts

hi. i have an array with 8 id numbers (e.g. [4234, 3241, 2313, ....];

i have an sql table with those id numbers among others.. i want to make a query with fetch the data, i can do that with using IN (4234,3241....)

but the problem is that i get the data when its oredered by numbers from small to big.. i want it oredered exactly as the array meanning the first row should be with id = 4324, second with 3241 etc...

how can i do that? thanx

Link to comment
Share on other sites

create a variable for everything inside the parens.   

 

Do you need procedural or OO code?

Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...