functionsql_sel($id){ if(is_array($id)){ $id = implode(",", $id); $result=$GLOBALS['mysqli']->query("select * from info where id in ($id)"); while(list($id,$message)=$result->fetch_row()){ echo'<li>'.$id.'ï¼'.$message.'</li>'; } }
}
functiondo_co() { if(isset($_POST['id'])){ $post=$_POST; if (@!is_numeric($post['id'][0]) || @!is_numeric($post['id'][1])) { die("NO! NO! NO! The Parameters must be numeric"); } sql_sel(array_slice($post['id'],0,2)); } die('No Permissions');