Gossamer Forum
Quote Reply
Re: [Ian] PPC In reply to
Mmmm...this is literally the last few lines of code I need to complete my PPC plugin! Can anyone see why this won't update?;

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");

As you can see, I have an 'or' statement in there, which doesn't seem to do anything. The only way I can think of, is that its not running the query, but how could I confirm this?

In my error logs, I have the following;

GT::SQL::Driver::MYSQL::sth (1794): Executing query: UPDATE lsql_PPC_Trans SET Transaction_ID = '4W615465CB7682458' , PayPal_Email = 'andy.newby@ace-installer.com' WHERE Date = 1032625682 from main::do_updates at ppc_paypal.cgi line 116

Should I have quotes around the 'Date' part?

Any help is much appreciated!

BTW: I have tried using Date => \"$item_number" and Date => "$item_number" , but the Date = part still seems to come out without the quotes Unsure

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 8719 Sep 18, 2002, 2:43 AM
Thread Re: [Andy] PPC
Andy 8472 Sep 18, 2002, 7:23 AM
Thread Re: [Andy] PPC
Andy 8441 Sep 19, 2002, 12:51 AM
Thread Re: [Andy] PPC
Andy 8444 Sep 19, 2002, 5:27 AM
Thread Re: [Andy] PPC
yogi 8474 Sep 19, 2002, 5:37 AM
Thread Re: [yogi] PPC
Andy 8437 Sep 19, 2002, 5:42 AM
Thread Re: [Andy] PPC
yogi 8417 Sep 19, 2002, 5:52 AM
Thread Re: [yogi] PPC
Andy 8437 Sep 19, 2002, 6:18 AM
Thread Re: [Andy] PPC
Andy 8447 Sep 19, 2002, 8:29 AM
Thread Re: [Andy] PPC
Ian 8405 Sep 19, 2002, 9:59 AM
Thread Re: [Ian] PPC
Andy 8358 Sep 21, 2002, 4:59 AM
Thread Re: [Andy] PPC
pugdog 8325 Sep 21, 2002, 7:45 AM
Thread Re: [pugdog] PPC
Andy 8375 Sep 21, 2002, 8:38 AM
Post Re: [Andy] PPC
pugdog 8311 Sep 21, 2002, 1:51 PM
Thread Re: [Andy] PPC
Paul 8333 Sep 21, 2002, 1:57 PM
Thread Re: [Paul] PPC
Andy 8332 Sep 22, 2002, 3:36 AM
Thread Re: [Andy] PPC
Paul 8268 Sep 22, 2002, 3:52 AM
Thread Re: [Paul] PPC
Andy 8282 Sep 22, 2002, 10:18 AM
Thread Re: [Andy] PPC
Andy 8258 Sep 23, 2002, 2:49 AM
Post Re: [Andy] PPC
Andy 8226 Sep 24, 2002, 7:01 AM