Syntax Save

9 06 2008

<?
$member=$_POST[“member”];
$pass=$_POST[“pass”];
$nama=$_POST[“nama”];
$alamat=$_POST[“alamat”];
$telepon=$_POST[“telepon”];
$kota=$_POST[“kota”];
$pekerjaan=$_POST[“pekerjaan”];

include”konek.php”;
$sql=”insert into member(member,pass,nama,alamat,telepon,kota,pekerjaan) values (‘$member’,’$pass’,’$nama’,’$alamat’,’$telepon’,’$kota’,’$pekerjaan’)”;
$laksanakan = mysql_query($sql);

if ($laksanakan){
header(“location:index.php”);
}else{
echo “data tidak bisa disimpan”;
}
?>

Iklan

Aksi

Information

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s




%d blogger menyukai ini: