Welcome to our newsletter
[insert_php]
$conn = new mysqli(‘localhost’,’grusomh’,’4y4q6z7t’,’grusomh_www’);
if($conn ->connection_error){
alert(‘issues with connection’);
}else{
}
$email = $_POST[’email’];
if($conn ->connection_error){
alert(‘issues with connection’);
}else{
}
$email = $_POST[’email’];
console.log($name);
$sql = “INSERT INTO wp_newsletter (email) VALUES (‘$email’)”;
if($conn->query($sql) === TRUE){
}
[/insert_php]