Jump to content

DanDewey

New Members
  • Posts

    4
  • Joined

  • Last visited

Community Answers

  1. DanDewey's post in Help with PHP Skipping If Statement was marked as the answer   
    So I've managed to solve myself by changing functions 2-5 to the following and now all functions are working independently
     
    add_action("gform_after_submission_123", "CC", 10, 2); function CC($entry, $form){ $con=mysqli_connect(""); $CCQty = $entry["13"]; if ($CCQty > 0){ $Name = $entry["1"]; $Service = "Fixed-Congestion Charge"; $CCRate = $entry["16"]; $CCQty = $entry["13"]; mysqli_query($con,"INSERT INTO beta_pay (Name,Type,Value,Qty) VALUES ('$Name','$Service','$CCRate','$CCQty')"); } }  
×
×
  • 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.