Gossamer Forum
Quote Reply
Re: [Andy] PPC In reply to
Code:
$user_links = $DB->table('PPC_Trans'); # first grab a new db handle
$user_links->update ( {
Transaction_ID => $txn_id,
PayPal_Email => $payer_email,
Used => "1"
},
{
Date => $item_number
},
{
GT_SQL_SKIP_INDEX => 1
}
) or &error("Error: $GT::SQL::error");




OK, this may be off base, but there is something I don't like here,
about using the condition (especially) Date=>$item_number

This is not something that is guaranteed to be unique, and there
might be a problem in which record you are updating.

Could you be updating the record where Date=>$item_number, but it's
*not* the record you think you are updating?

Also, why is Date <=> $item_number ? Are you trying to obfuscate
your code <G>.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread PPC Andy 8710 Sep 18, 2002, 2:43 AM
Thread Re: [Andy] PPC
Andy 8463 Sep 18, 2002, 7:23 AM
Thread Re: [Andy] PPC
Andy 8432 Sep 19, 2002, 12:51 AM
Thread Re: [Andy] PPC
Andy 8435 Sep 19, 2002, 5:27 AM
Thread Re: [Andy] PPC
yogi 8465 Sep 19, 2002, 5:37 AM
Thread Re: [yogi] PPC
Andy 8428 Sep 19, 2002, 5:42 AM
Thread Re: [Andy] PPC
yogi 8408 Sep 19, 2002, 5:52 AM
Thread Re: [yogi] PPC
Andy 8428 Sep 19, 2002, 6:18 AM
Thread Re: [Andy] PPC
Andy 8438 Sep 19, 2002, 8:29 AM
Thread Re: [Andy] PPC
Ian 8396 Sep 19, 2002, 9:59 AM
Thread Re: [Ian] PPC
Andy 8348 Sep 21, 2002, 4:59 AM
Thread Re: [Andy] PPC
pugdog 8316 Sep 21, 2002, 7:45 AM
Thread Re: [pugdog] PPC
Andy 8365 Sep 21, 2002, 8:38 AM
Post Re: [Andy] PPC
pugdog 8302 Sep 21, 2002, 1:51 PM
Thread Re: [Andy] PPC
Paul 8323 Sep 21, 2002, 1:57 PM
Thread Re: [Paul] PPC
Andy 8323 Sep 22, 2002, 3:36 AM
Thread Re: [Andy] PPC
Paul 8259 Sep 22, 2002, 3:52 AM
Thread Re: [Paul] PPC
Andy 8273 Sep 22, 2002, 10:18 AM
Thread Re: [Andy] PPC
Andy 8249 Sep 23, 2002, 2:49 AM
Post Re: [Andy] PPC
Andy 8217 Sep 24, 2002, 7:01 AM