Answer the question
In order to leave comments, you need to log in
Check the manual that corresponds to your MariaDB server version for the right syntax. Why is an error displayed?
Hello. I am learning how to interact with php with phpmyadmin.
$country = "SELECT `country`.`id` FROM `country`
where `country`.`country` = '".$_POST["country"]."' ";
$resultcountry = mysqli_query($link, $country );
if (!$resultcountry) {
printf("Error: %s\n", mysqli_error($link));
exit();
}
<div class="form-group has-feedback">
<label for="country" class="control-label">Введите ваше гражданство:</label>
<input type="text" id="country" name="country" class="form-control" required="required" value="" placeholder="Например, Италия" minlength="2" maxlength="30">
<span class="glyphicon form-control-feedback"></span>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question