Ninjakreborn Posted November 15, 2011 Share Posted November 15, 2011 INSERT INTO jp_transaction_history (transaction_id, order_id, condition, authorization_code, ponumber, order_description, first_name, last_name, address_1, address_2, company, city, state, postal_code, country, email, phone, fax, cell_phone, customertaxid, customerid, website, shipping_first_name, shipping_last_name, shipping_address_1, shipping_address_2, shipping_company, shipping_city, shipping_state, shipping_postal_code, shipping_country, shipping_email, shipping_carrier, tracking_number, shipping_date, shipping, shipping_phone, cc_number, cc_hash, cc_exp, cavv, cavv_result, xid, avs_response, csv_response, cardholder_auth, check_account, check_hash, check_aba, check_name, account_holder_type, account_type, sec_code, processor_id, tax, currency, cc_bin, product_sku, product_quantity, product_description, product_amount) VALUES (valueshere) Does anyone see any syntax errors with the first part of the statement. Mostly the list of fields..it's returning a syntax error on that part of the query, but that doesn't make any sense. Everything seems to be in order. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/251196-mysql-syntax-error/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 15, 2011 Share Posted November 15, 2011 I'll bet the error was - ...the right syntax to use near 'condition http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html Quote Link to comment https://forums.phpfreaks.com/topic/251196-mysql-syntax-error/#findComment-1288363 Share on other sites More sharing options...
fenway Posted November 16, 2011 Share Posted November 16, 2011 You know, you don't have to ask us when mysql tells you. Quote Link to comment https://forums.phpfreaks.com/topic/251196-mysql-syntax-error/#findComment-1288570 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.