Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to insert a textarea call into the database


Guest

Recommended Posts

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Payment Address:', 'MODULE_PAYMENT_MONEYORDER_PAYADDRESS', '', 'Address to send payments to?', '6', '1', 'tep_cfg_textarea(\'\')', now());");

 

Trying to make a custom payment module, and need to have a textarea in the module on the admin control panel to add the payment address, but when I use the codes

 

'tep_cfg_textarea()',

'tep_cfg_textarea('')',

'tep_cfg_textarea(\'\')',

 

They all return errors, whats the correct function,

 

Anyone?

Link to comment
Share on other sites

Sorted, reinstalled and repaired the database and entered in

 

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Payment Address:', 'MODULE_PAYMENT_MONEYORDER_PAYADDRESS', 'Send Payment to Name\nAddress\nCountry\nPhone', 'Address to send payments to?', '6', '0', 'tep_cfg_textarea(', now());");

 

Thank god it works

 

:)

Link to comment
Share on other sites

  • 2 years later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...