paano ko po magagawa to, each time mag iinput ang user sa textbox , mag checheck automatically through php script.. and without refreshing the page po sana
This is the input.
gusto ko sana mag perform tong script na to
This is the input.
Code:
<label>Precinct</label>
<input type="text" name="precinct" id="precint" class="form-control" required>
PHP:
<?php
include('../Config/config.php');
$query="SELECT * from voters WHERE precinct="$_POST['precinct']";
$passed=mysqli_query($mysqli,$query);
if(mysqli_num_rows($passed)>200)
{
echo "precinct full!"
}
?>