0){ $row = mysql_fetch_assoc($step); $res = deClearInputElements($row); $sql_file = "SELECT * FROM funnel_files WHERE etap_id = '".$row['id']."' AND funnel_id = ".$row['funnel_id']; $q_file = mysql_query($sql_file); $files = array(); while($file_r = mysql_fetch_assoc($q_file)){ $path = "https://uf.joywork.ru/upload/funnels/".$row['funnel_id']."/".$file_r['guid'].".".$file_r['type']; $files[] = array('guid' => $file_r['guid'],'isUpload' => true, 'uploads' => false, 'name' => $file_r['name'], 'path' => $path); } $res['files'] = $files; } echo json_encode($res, JSON_UNESCAPED_UNICODE); } /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */