View Single Post
Old March 19th, 2008, 09:23 AM
rapraj rapraj is offline
Authorized User
Join Date: Feb 2007
Location: IIT Kanpur, UP, India.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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