当我想使用 save.php 按钮将数据保存到数据库时,我的浏览器显示 NO Data Received 并且数据未保存在数据库中?
<?php
include 'database.php';
$nama = $_POST['nama'];
$jalan = $_POST['jalan'];
$lat = $_POST['lat'];
$lng = $_POST['lng'];
$deskripsi = $_POST['deskripsi'];
$kueri = mysql_query("INSERT INTO wisata (nama, jalan, lat, lng, deskripsi) VALUES ('$nama', '$jalan', '$lat', '$lng','$deskripsi');");
if($kueri){
echo "Data berhasil disimpan<br>
<a href=\"index.php\">Kembali</a>";
} else {
echo "Data gagal disimpan<br>
<a href=\"index.php\">Kembali</a>";
}
?>
有事吗?