Populate dropdown from database
If that testing_db is your WordPress database, then you should use the WordPress wpdb API/class to interact with the data in your custom table (wp_tmadm_dojangs). So if this is how you do it in “regular PHP”, i.e. using native PHP functions: $sql = mysqli_query($conn, “SELECT dojangName FROM wp_tmadm_dojangs”); while ($row = $sql->fetch_assoc()){ $dojang = $row[‘dojangName’]; … Read more