DOCTYPE html>
Formaga ma'lumot kiritish
Mahalla ma'lumotini kiritish
$a=mysqli_connect("localhost","root","","mahalla");
if ($a) echo "Bazaga ulandi";
if (isset($_POST['saqlash']))
{
if (isset($_POST['Mahalla'])) $Mahalla=$_POST['Mahalla'];
if (isset($_POST['Mmanzili'])) $Mmanzili=$_POST['Mmanzili'];
if (isset($_POST['Ktaminlangan'])) $Ktaminlangan=$_POST['Ktaminlangan'];
if (isset($_POST['Ydaftari'])) $Ydaftari=$_POST['Ydaftari'];
if (isset($_POST['Qariyalar'])) $Qariyalar=$_POST['Qariyalar'];
$s=mysqli_query($a,"INSERT INTO mahallalar(mahalla_nomi,mahalla_manzili,kam_taminlanganla,yoshlar_daftaridagilar,qariyalar) VALUES ('$Mahalla','$Mmanzili','$Ktaminlangan','$Ydaftari','$Qariyalar')");
if ($s==true) echo "Saqlandi";
else echo "Saqlanmadi";
}
?>