query($sql); while ($row = $rs->fetch_assoc()) { $categoryDisplay = !empty($row['categoryName']) ? ' ['.$row['categoryName'].']' : ''; ?>