Heya, quick question. I have a variable called $country_id'. How do i put it in my sql insert? I tried this but it keeps coming out as 0.
$query = "INSERT INTO province (country_id, province) " .
"VALUES ('$country_id', '"
. $_POST['province'] . "');";
I echoed the variable to test its value and it come out right. Am i missing something?
Thanks for the time. 😃