$csv[0], 'title' => $csv[1], 'url' => $csv[2], 'company' => ""); $cnt++; } fclose($fp); //最新資料直近30個(リンク付のみにするため余分に取得)※FGN追加は、book_group IN (1, 2, 3, 4, 8) $strSQL = "SELECT m.book_date AS dd, m.book_name AS title, s.sub_txt AS url, m.book_group AS company, m.book_coded AS book_coded "; $strSQL .= "FROM "; $strSQL .= "(SELECT * FROM fkg_book_main WHERE book_type IN (1, 2) AND book_group IN (1, 2, 3