insert profil

<?php
include ‘koneksi.php’;

$nama                =$_POST[‘nama’];
$jk                    =$_POST[‘jenis_kelamin’];
$alamat                =$_POST[‘alamat’];
$no_tlp                =$_POST[‘no_tlp’];

$query =”INSERT INTO profil values(”,’$nama’,’$jk’,’$alamat’,’$no_tlp’)”;
$sql = mysql_query($query) or die (mysql_error());

if($sql)
{
echo “Data Berhasil disimpan
<meta http-equiv=’refresh’ content=’1;url=form_tampil_data.php’>”;

}
else
{
echo “Data gagal disimpan
<meta http-equiv=’refresh’ content=’1;url=form_tampil_data.php’>”;
}

?>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s