Search:

Type: Posts; User: 20pictures; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    1,866

    MIMEdecoder trim()

    I'm having trouble with a MIMEdecoder. It ouputs the To: email address in the format:
    Nobody <nobody@mydomain.com>

    In order to get it to match my database records I need to trim()
    I had used:
    ...
  2. Replies
    2
    Views
    9,930

    TimeZone Offset

    I am trying to offset my timezone by 8 hours.
    I tried:


    var $offset = 8 ;
    var $now = DATE_ADD(NOW(),INTERVAL $offset HOUR);


    ...but I keep getting Error Message:
    Parse...
  3. Replies
    5
    Views
    2,426

    ...but surely if I send, say 10 emails, then...

    ...but surely if I send, say 10 emails, then $mysub is an array of 10 sub_id?

    If I limit it to one value, only one sub_id gets updated ...which was the problem I had in the first place.
    Maybe...
  4. Replies
    1
    Views
    8,137

    Resolved I figured it out: $emailx = trim($email,...

    I figured it out:


    $emailx = trim($email, "<>");
    $db->execute_query("UPDATE mail_subscribers SET bounce_count=bounce_count+1 WHERE email = '$emailx'");
  5. Replies
    1
    Views
    8,137

    Resolved Removal of brackets

    I can't get this to work:



    $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:...
  6. Replies
    5
    Views
    2,426

    Got it, thanks! ...needed an IN... ...

    Got it, thanks!
    ...needed an IN...



    $end=date("F j, Y, g:i a");
    $ldatabase->execute_query("UPDATE mail_newsletter SET sent='Y',date_sent=now() WHERE msg_id = ". $mrecord['msg_id']);...
  7. Replies
    5
    Views
    2,426

    ...Ive just tried your recommendation but it has...

    ...Ive just tried your recommendation but it has not made a change.

    I can update one at a time but if I send two emails no updates are made.

    var_dump message:
    string(58) "SELECT sub_id FROM...
  8. Replies
    5
    Views
    2,426

    Updating Multiple Rows in a Database

    I am working on some php that will post the date an email is sent to a database. Each recipient of that email must have their date updated.
    The first string should select an array of sub_id...
Results 1 to 8 of 8