Mailing list (php/mysql)

Out of context: Reply #13

  • Started
  • Last post
  • 13 Responses
  • juhls0

    Trying this now:

    if($query){
    $count = mysqli_affected_rows($oConn);
    }
    if($count>0){
    echo 'You are now unsubscribed.';
    }
    else{
    echo 'Server error. Please try again later or contact the owner of the site.';
    }

    Don't think I am using mysqli_affected_rows properly.

    • Nevermind, it works now. Just had to refresh a dozen times and use $email_key = md5($email);juhls
    • And try different emails rather than the same two.juhls
    • I'm also using md5($email.$full_nam... instead of the random generator for the email_keyjuhls

View thread