Results 1 to 2 of 2

Thread: Removal of brackets

  1. #1
    Join Date
    Jul 2009
    Location
    London
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Removal of brackets

    I can't get this to work:

    PHP Code:
    $db->execute_query("UPDATE mail_subscribers SET bounce_count='bounce_count + 1' WHERE email = '$email'"); 
    I believe it is because the email values do not match:
    email = nobody@mydomain.com
    $email = <nobody@mydomain.com>

    This is because $email was taken from a header by a MIMEdecoder.
    How can I remove the brackets (tags)?
    Last edited by Snookerman; 08-02-2009 at 11:50 AM.

  2. #2
    Join Date
    Jul 2009
    Location
    London
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I figured it out:
    PHP Code:
    $emailx trim($email"<>");
    $db->execute_query("UPDATE mail_subscribers SET bounce_count=bounce_count+1 WHERE email = '$emailx'"); 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •