Commit 33cd4d5039a738386892bc2955635348e43c0b7a

Authored by Alex Savenko
1 parent 0c91b0bc

fix

Showing 1 changed file with 0 additions and 6 deletions   Show diff stats
www-arktika/email.php
@@ -25,12 +25,6 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && @@ -25,12 +25,6 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) &&
25 25
26 $today = date("Y-m-d H:i:s"); 26 $today = date("Y-m-d H:i:s");
27 $query = pg_query($db_conn, "INSERT INTO customers_arktika (name, email, date) VALUES (E'".$name."', E'".$email."', CURRENT_TIMESTAMP)"); 27 $query = pg_query($db_conn, "INSERT INTO customers_arktika (name, email, date) VALUES (E'".$name."', E'".$email."', CURRENT_TIMESTAMP)");
28 - if (pg_affected_rows($query) > 0) {  
29 - $json['error'] = false; // oшибoк нe былo  
30 - echo json_encode($json); // вывoдим мaссив oтвeтa  
31 - } else {  
32 - echo "false";  
33 - }  
34 //Create a new PHPMailer instance 28 //Create a new PHPMailer instance
35 $mail = new PHPMailer; 29 $mail = new PHPMailer;
36 //Tell PHPMailer to use SMTP 30 //Tell PHPMailer to use SMTP