I'm using php and need to do a bunch of select statements on the same table and column and get the rows that match those values.
I have all the values I'm searching on in an array and right now I'm just looping and doing a select statement on each one separately. How could I put this all into one select statement and ditch the loop?
Right now it's like this:
for (yaddah yaddah yahhah){
SELECT * FROM scan WHERE order=var[$i];
}