×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: Aug 25, 2017 6:01 AM
Views: 3
Tags: no tags
  1. // $ids='5,6,2,1';
  2. $ids=explode(',',$ids);
  3. $inQuery = implode(',', array_fill(0, count($ids), '?'));
  4. $list=$s_db->select(array('f'=>'*','t'=>P.$module_info['module_table'],
  5. 'w'=>'id IN ('.$inQuery.')',
  6. 'wa'=>$ids));