・・・ $query->execute(); $max = $query->rowCount(); $j = 0; for ($i=0; $i < $max ; $i++) { $row = $query->fetch(PDO::FETCH_ASSOC) if($row["xxxx"] == "") { continue; } $j++; }
・・・ $query->execute(); $max = $query->rowCount(); $j = 0; for ($i=0; $i < $max ; $i++) { $row = $query->fetch(PDO::FETCH_ASSOC) if($row["xxxx"] == "") { continue; } $j++; }