I have an online store in shopify
, I would like to use the following code php
to insert data in a database in another hosting.
Specifically, I want to save emails from visitors who sign up for a form.
<?php
$conexion = mysqli_connect("host", "user", "password", "database");
$email = $_POST['email'];
$sql = "INSERT into suscriptores (suscriptor) VALUES('$email')";
$consulta = mysqli_query($conexion, $sql);
?>
I would like to know if it is possible that the emails that are registered in the form that I have on the website in shopify can reach a database hosted on another hosting.
I have insecurity due to the type of platform that is shopify that does not allow me to send the data that I want to save to that external database. Thanks:)