Please confirm that this information is correct.

"; foreach($permissions as $channelID) { $row = mysqli_fetch_assoc(mysqli_query($conn, "SELECT channelName FROM channels WHERE channelID = ".$channelID."")); $channelName = $row['channelName']; if ($channel == $channelID) { $string = ""; } else { $string = ""; } $select = $select.$string; } $select = $select.""; echo "' '".$select; } else { header('Location: newbook.php'); } ?>