Hi today I made a dynamic select option menu with PHP and AJAX which is working totally fine, but when selecting a option with -> ' <- inside the word, it gives me no result. I really don't why it's showing nothing.
Here is a link to the example which I've build: EXAMPLE
This is what I use to get the second result:
<?php
if(isset($_POST['get_option']))
{
require("../config.php");
$country = mysqli_real_escape_string($mysqli, $_POST['get_option']);
$find = mysqli_query($mysqli, "SELECT `league` FROM `teams` WHERE `country`='$country' GROUP BY `league`");
while ($row = mysqli_fetch_array($find))
{
echo "<option>".$row['league']."</option>";
}
exit;
}
?>