Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我用来检查特定 mysql 查询是否返回任何空列并因此将它们过滤掉的 27 个循环之一。但它似乎没有工作。任何帮助将非常感激.....
foreach($array as $row) { if(!empty($row['TROVE'])) { $trove = print "<th>TROVE</th>"; break; } }
而不是在x个循环中检查...检查查询中的条件非常有效,例如...
where TROVE is not null or TROVE <> ''