array with where condtion
hi everybody.....!
I am working in php5 and I have an array, getidArray(index as 0, 1, 2..ect)with value of auto increment number(primary key).
I want to use mysql query as
select firstFieldname,secondFieldname from tablename where id=$getidArray;
note that: $getidArray[0]=primary key1;
$getidArray[1]=primary key2;
$getidArray[2]=primary key3...etc
How to use array in where condition?
Please reply as soon as possible
Thanks in advance
|