How to display these results in bootstrap 3 tables : I would like to display the information in the columns of a database using php but need the table to be styled using bootstrap 3 and not the default html table tag.

I would like to display the information in the columns of a database using php but need the table to be styled using bootstrap 3 and not the default html table tag.

I would like to display the information in the columns of a database using php but need the table to be styled using bootstrap 3 and not the default html table tag.

	

    <?php
    $connect = mysqli_connect("localhost", "root", "", "oas");
    if ($connect) {
    
    	$search = "";
    
    	$query = "SELECT distinct(M.`s_id`) as `s_id`,
                         M.`s_mark`,
                         U.`s_name`
                         FROM `t_usermark` as M
                        JOIN `t_user_data` as U on M.s_id = U.s_id  WHERE `s_name` like '%$search%'";
    	$result = mysqli_query($connect, $query);
    
    	if ($result) {
    		if (mysqli_num_rows($result) > 0) {
    			echo "
                        <table>
                            <tr>
                                <th>ID</th>
                                <th>Name</th>
                                <th>Mark</th>
                            </tr>
                        ";
    			while ($row = mysqli_fetch_array($result)) {
    				$id = $row['s_id'];
    				$mark = $row['s_mark'];
    				$name = $row['s_name'];
    
    				echo "
                                <tr>
                                    <td>$id</td>
                                    <td>$name</td>
                                    <td>$mark</td>
                                </tr>
                            ";
    
    				// echo "<p>$id</p><p>$mark</p><p>$name</p>";
    			}
    
    		} else {
    			echo "No results";
    		}
    
    		echo "</table>";
    	} else {
    		echo mysqli_error($connect);
    	}
    } else {
    	echo "Database connection failed";
    }
    
    ?>