Advertisement
Guest User

Untitled

a guest
Dec 29th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. $text = $_REQUEST["enable"];
  2. $description = 'Debited For Service';
  3.  
  4. foreach($text as $data)
  5. {
  6. foreach($check as $data1)
  7. {
  8. $insert="INSERT INTO `wallet_transaction`(`wallet_id`, `debit_amount`, `description`) VALUES ('$esc_id', '$data1', '$data', '$description')";
  9. mysql_query($insert);
  10. }
  11. }
  12.  
  13. INSERT INTO `wallet_transaction`(`wallet_id`, `debit_amount`, `description`) VALUES ('2', '200', 'Debited For Service')
  14. INSERT INTO `wallet_transaction`(`wallet_id`, `debit_amount`, `description`) VALUES ('3', '100', 'Debited For Service')
  15.  
  16. INSERT INTO `wallet_transaction`(`wallet_id`, `debit_amount`, `description`) VALUES ('2', '200', 'Debited For Service')
  17. INSERT INTO `wallet_transaction`(`wallet_id`, `debit_amount`, `description`) VALUES ('3', '100', 'Debited For Service')
  18.  
  19. foreach ($text as $i => $data) {
  20. $data1 = $check[$i];
  21. $insert="INSERT INTO `wallet_transaction`(`wallet_id`, `debit_amount`, `description`) VALUES ('$esc_id', '$data1', '$data', '$description')";
  22. mysql_query($insert);
  23. }
  24.  
  25. $text = $_REQUEST["enable"];
  26. $description = 'Debited For Service';
  27. foreach($text as $data)
  28. {
  29. foreach($check as $data1)
  30. {
  31. $inData = $data;
  32. }
  33. $insert="INSERT INTO `wallet_transaction`(`wallet_id`, `debit_amount`, `description`) VALUES ('$esc_id', '$data1', '$inData', '$description')";
  34. mysql_query($insert);
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement