アプリ版:「スタンプのみでお礼する」機能のリリースについて

php初心者です
この検出結果を 横に5こづづ表示したいのですが

if(is_file("$data_dir/$prof_data_file")) {
$data_fp = fopen("$data_dir/$prof_data_file", "r");
if($data_fp) {

$temp_body = str_replace("\$ipage_name", $ipage_name, $temp_body);

$index = 0;
while(true) {
echo( mb_convert_encoding(print_each_list(fgets($data_fp), $temp_body, $field_num, $tr_back, $image_dir), "SJIS", "EUC-JP"));
if(feof($data_fp)) break;
$index++;
}

fclose($data_fp);
}
}

A 回答 (1件)

どこが検出結果なのかが良く判らないのですが…。



とりあえず、
$index++;
の次に
if(($index%5)==0) echo("\n");
を加える。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!