get all fields value from mysql using php

Posted by zahir hussain on Stack Overflow See other posts from Stack Overflow or by zahir hussain
Published on 2010-06-16T07:37:33Z Indexed on 2010/06/16 7:42 UTC
Read the original article Hit count: 198

Filed under:
|
|

hi

i want to know how to get all fields value search by array.

i have array that s

my table is

  id   content

  1    zahr
  2    hai
   .
   .
   .
  and so on


$a = {2,3,4,5,43,32};

i have to take the contents by this id(from array "a").

i know, i can use "for" loop for getting each element from mysql.

but i would like to use any filters or any predefined function

thanks and advance

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays