oh iya gan . . maaf OOT . . 1 pertanyaan lagi . .
kalo ini kesalahannya dimana ya ??
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1' at line 14
ini syntax nya . .
<?php
include_once 'db_config.php';
if(isset($_POST))
{
$c_id=$_POST;
$tgl_in=$_POST;
$tgl_out=$_POST;
$jenis_kamar=$_POST;
$nama=$_POST;
$no_ktp=$_POST;
$address=$_POST;
$company=$_POST;
$mobile_phone=$_POST;
$office_phone=$_POST;
$e_mail=$_POST;
$city=$_POST;
$country=$_POST;
$post_code=$_POST;
$sql= "update user set
tgl_in='".$tgl_in."',
tgl_out='".$tgl_out."',
jenis_kamar='".$jenis_kamar."',
nama='".$nama."',
no_ktp='".$address."',
company='".$company."',
mobile_phone='".$mobile_phone."',
office_phone='".$office_phone."',
e_mail='".$e_mail."',
city='".$city."',
country='".$country."',
post_code='".$post_code."'
where id_user='".$c_id;
$query=mysql_query($sql)or die(mysql_error());
echo("Data berhasil di update");
echo("<br><br>");
echo("<a href='select_semua.php'>Kembali Ke Daftar</a>");
}
?>
ini lagi bikin form edit . .