Punkey Posted February 27, 2005 Share Posted February 27, 2005 Hi Guys, Can anybody help me with this problem? I was told this is from contrib. <Fatal error: Call to undefined function: tep_db_query() in /home/gourmetc/public_html/add_checkout_success.php on line 3> ----------- This is the begining of script and all () are correct unless I missed somthing. <?php //ICW ADDED FOR ORDER_TOTAL CREDIT SYSTEM - Start Addition $gv_query=tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id='".$customer_id."'"); if ($gv_result=tep_db_fetch_array($gv_query)) { if ($gv_result['amount'] > 0) { ?> Can one of you look at this please and tell me how to correct this problem? :blink: I appreciate any help I get. Thanks. Quote OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2005 Share Posted February 27, 2005 Try adding the following directly after <?php require('includes/application_top.php'); Matti Quote Link to comment Share on other sites More sharing options...
Punkey Posted February 27, 2005 Author Share Posted February 27, 2005 Try adding the following directly after <?php require('includes/application_top.php'); Matti <{POST_SNAPBACK}> OK, I did that. the code looks like this: <?php require('includes/application_top.php'); //ICW ADDED FOR ORDER_TOTAL CREDIT SYSTEM - Start Addition $gv_query=tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id='".$customer_id."'"); if ($gv_result=tep_db_fetch_array($gv_query)) { if ($gv_result['amount'] > 0) { --------- No iget this error: 1146 - Table 'gourmetc_basket.TABLE_COUPON_GV_CUSTOMER' doesn't exist select amount from TABLE_COUPON_GV_CUSTOMER where customer_id='' [TEP STOP] eny idea? Quote OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2005 Share Posted February 27, 2005 You have not included the database defines for the contribution in database_tables.php - please read the contribution documentation. Also make sure that the contribution is compatible with your version of osCommerce :D Matti Matti Quote Link to comment Share on other sites More sharing options...
Punkey Posted February 27, 2005 Author Share Posted February 27, 2005 You have not included the database defines for the contribution in database_tables.php - please read the contribution documentation. Also make sure that the contribution is compatible with your version of osCommerce :D Matti Matti <{POST_SNAPBACK}> I am sorry Matti, I know I don't belong here! Not a programmer and totally lost. Can you explain in plain English (For Dummys) so I can do it. If not I understand. :huh: My OSC is M2.2 and this contrib was installed by some one els. Thanks. Quote OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!! Link to comment 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.
Note: Your post will require moderator approval before it will be visible.