nDh4

hsl

Jun 16th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. </head>
  7.  
  8. <body>
  9. <?
  10. include '../../koneksi.php';
  11. echo $C_TIM=$_POST["C_TIM"];
  12. echo $ID_BRG_MSK=$_POST["ID_BRG_MSK"];
  13. echo $TGL_MSK=$_POST["TGL_MSK"];
  14. echo $QTY_MSK=$_POST["QTY_MSK"];
  15. echo $KD_BRG=$_POST["NM_BRG"];
  16.  
  17. echo $inp="INSERT INTO `pln2`.`t_masuk` VALUES ('$ID_BRG_MSK', '$C_TIM', '$TGL_MSK', '$KD_BRG')";
  18.  
  19. echo $inp2="INSERT INTO `pln2`.`td_masuk` VALUES ('', '$ID_BRG_MSK', '$QTY_MSK')";
  20.  
  21. $hsl=@mysql_query($inp,$idkoneksi);
  22. $hsl2=@mysql_query($inp2,$idkoneksi);
  23.  
  24. if($hsl&&$hsl2){
  25.  
  26. echo "data tersimpan";
  27. }else{
  28. echo "data gagal disimpan";
  29. }
  30. @mysql_close($idkoneksi);
  31.  
  32.  
  33. ?>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment