hello";
if(isset($_POST['submit'])){
if(!empty($_POST['check_list'])) {
// Connect to the database
global $wpdb;
// Create an array of selected checkboxes
$selected_checkboxes = implode(",", $_POST['check_list']);
// Select rows from the database where the checkbox value matches
$sql = "SELECT * FROM unsig_master WHERE num_props IN ($selected_checkboxes)";
$result = mysqli_query($wpdb, $sql);
// Display the results
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
echo $row["column1"] . " " . $row["column2"] . "
"; } } else { echo "No results found."; } } } ?>
"; } } else { echo "No results found."; } } } ?>