Jump to content

insert


d_vaat

Recommended Posts

<?php

include_once "koneksi.php";
$koneksi = mysql_connect($dbconf['host'],$dbconf['dbuser'],$dbconf['dbpass']) or die ("Koneksi database gagal");
mysql_select_db($dbconf['dbname'],$koneksi);


if($koneksi){
$IDREG=$_POST['txtidreg'];
$REG=$_POST['txtreg'];
$DEPO=$_POST['txtdepo'];
$TARGET=$_POST['txttarget'];
$ACM=$_POST['txtacm'];
$PIC=$_POST['txtpic'];

$SQL = "INSERT INTO tregional Values('$IDREG','$REG','$DEPO','$TARGET','$ACM','$PIC')";
mysql_query($SQL, $koneksi) or die ("Proses insert is failed! <br> [<a href=view.php>Show Data</a>]");
echo "Proses insert done!";
echo "<br>";
echo "[<a href=view.php>Show Data</a>]";
}

?>
:confused:

Link to comment
https://forums.phpfreaks.com/topic/279207-insert/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.