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>]";}?> Link to comment https://forums.phpfreaks.com/topic/279207-insert/ 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. Link to comment https://forums.phpfreaks.com/topic/279207-insert/#findComment-1436157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.