Doctype html> Formaga ma'lumot kiritish


Download 471.96 Kb.
Sana18.12.2022
Hajmi471.96 Kb.
#1027245
Bog'liq
1-TAJRIBA-ISHI-MBBDT


1-TAJRIBA ISHI





DOCTYPE html>


Formaga ma'lumot <a href="/kompyuterga-malumotlarni-kiritish-chiqarish-tizimlari-reja-v2.html">kiritish</a>


Mahalla ma'lumotini kiritish



Mahalla nomini kiriting:


Mahalla mazilini kiriting:


Kam taminlanganlar sonini kiriting:


Yoshlar daftaridagilar sonini kiriting:


Qariyalar sonini kiriting:




$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";
}
?>





Download 471.96 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling