The INSERT INTO does not run, and I get no error, except a notice that $re is undefined. It had previously worked, but no longer works.
$servername = "localhost";
$username = "id728908_njaohnt";
$password = "pass";
$dbname = "id728908_sub";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
if (!$resu=$conn->query("SELECT confirmed FROM subscribers WHERE
email='".$email."'"))
{echo $conn->error;}
while ($row = $resu->fetch_assoc()) {
$resul=$row['confirmed'];}
$sql = "INSERT INTO subscribers (email) VALUES ('".$email."')";
if ($resul==null || $resul==0)
{
if ($resul!=0)
{
if ($conn->query($sql) === TRUE)
{
$res=$conn->query("SELECT A_I FROM subscribers WHERE email='".$email."'");
while ($row = $res->fetch_assoc()) {
$re=$row['A_I'];
...
$email is $email = @trim(stripslashes($_GET['email']));