d_vaat Posted June 15, 2013 Share Posted June 15, 2013 <?phpinclude_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>]";}?> Quote Link to comment Share on other sites More sharing options...
Christian F. Posted June 15, 2013 Share Posted June 15, 2013 *Shrug* Here's a few tips for you though: Make sure you post in the correct section. This isn't maths-related. I recommend that you read this article. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.