Gossamer Forum
Quote Reply
Re: [Paul] PPC In reply to
Ok...I'm getting there :D I now have a UniqueAutoIncrementing field called SetID. I've got the following code;

Code:
# ok, everything seems fine here, lets update the database, and also prefix_Users with their new purchase...
$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 }, { SetID => "$item_number" }, { GT_SQL_SKIP_INDEX => 1 } )
or &error("Error: $GT::SQL::error");

And in my error logs I get;

Quote:
GT::SQL::Driver::MYSQL::sth (13259): Executing query: SELECT Transaction_ID,Date,PayPal_Email,Used FROM lsql_PPC_Trans WHERE SetID = 16 from main::do_updates at ppc_paypal.cgi line 117
GT::SQL::Driver::MYSQL::sth (13259): Executing query: UPDATE lsql_PPC_Trans SET Transaction_ID = '9JC32187PN230270F' , PayPal_Email = 'andy.newby@ace-installer.com' from main::do_updates at ppc_paypal.cgi line 117

As you can see, the 'Used' field is set to 0 still...and in the query, located inred, it doesn't actually get even defined in the query.

I have tried;

Used => '1'
Used => "1"
Used => \"1"
Used => \'1'

and none of them seem to work...anyone got any ideas? Unsure

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread PPC Andy 8725 Sep 18, 2002, 2:43 AM
Thread Re: [Andy] PPC
Andy 8478 Sep 18, 2002, 7:23 AM
Thread Re: [Andy] PPC
Andy 8447 Sep 19, 2002, 12:51 AM
Thread Re: [Andy] PPC
Andy 8450 Sep 19, 2002, 5:27 AM
Thread Re: [Andy] PPC
yogi 8480 Sep 19, 2002, 5:37 AM
Thread Re: [yogi] PPC
Andy 8443 Sep 19, 2002, 5:42 AM
Thread Re: [Andy] PPC
yogi 8423 Sep 19, 2002, 5:52 AM
Thread Re: [yogi] PPC
Andy 8443 Sep 19, 2002, 6:18 AM
Thread Re: [Andy] PPC
Andy 8453 Sep 19, 2002, 8:29 AM
Thread Re: [Andy] PPC
Ian 8411 Sep 19, 2002, 9:59 AM
Thread Re: [Ian] PPC
Andy 8364 Sep 21, 2002, 4:59 AM
Thread Re: [Andy] PPC
pugdog 8331 Sep 21, 2002, 7:45 AM
Thread Re: [pugdog] PPC
Andy 8381 Sep 21, 2002, 8:38 AM
Post Re: [Andy] PPC
pugdog 8317 Sep 21, 2002, 1:51 PM
Thread Re: [Andy] PPC
Paul 8339 Sep 21, 2002, 1:57 PM
Thread Re: [Paul] PPC
Andy 8339 Sep 22, 2002, 3:36 AM
Thread Re: [Andy] PPC
Paul 8274 Sep 22, 2002, 3:52 AM
Thread Re: [Paul] PPC
Andy 8288 Sep 22, 2002, 10:18 AM
Thread Re: [Andy] PPC
Andy 8264 Sep 23, 2002, 2:49 AM
Post Re: [Andy] PPC
Andy 8232 Sep 24, 2002, 7:01 AM