Here I need in some way to concatenate my js variable num with php query if it's possible?
Because, I have two select tags (in my html page) the second one depends from the first one. On blur I can get the value of the first, but I don't know how to concatenate this value to the php query which needs to load the second select.
<?php
echo "<script>";
echo "var num = 5;";
$query2="SELECT * FROM region WHERE IDNation=";
echo "</script>";
$res2 = mysqli_query($con,$query2);
?>