o’hile (list($name, $value) = each($HTTP_POST_VARS)) { echo "$name = $value
\n";
}
} else{
// display form
?>
} // end if
?>
// kiritish formasi
$db = mysql_connect("localhost", "gost"); mysql_select_db("mydb",$db);
$sql = "INSERT INTO xodim(nomi,last,address,ish) VALUES
('$nomi','$last','$address','$ish')";
$result = mysql_query($sql);
echo "Raxmat!Ma’lumotlar kiritildi.\n";
} else{
// chiqarish formasi
?>
}
// end if
?>
Do'stlaringiz bilan baham: |