How to use an array of values from PHP in the 'IN' clause of mysql query?

后端 未结 3 2011
离开以前
离开以前 2021-01-23 02:17
//get all id\'s of ur friend that has installed your application
 $friend_pics=$facebook->api( array( \'method\' => \'fql.query\', \'query\' => \"SELECT uid FRO         


        
3条回答
  •  深忆病人
    2021-01-23 02:41

    $friend_pics should be a string containing a comma separated list i.e. "1, 2, 3, 4". If it is not, then your second query will always fail.

提交回复
热议问题