Save.php“没有收到数据”

时间:2013-11-04 16:46:10

标签: php mysql database

当我想使用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>";
}

?>

出了什么问题?

1 个答案:

答案 0 :(得分:0)

主机受DDOS攻击,数据库被破坏