Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Convert simple Inline Code to dynamic (Take Value from the Db)


Pelvis

Recommended Posts

Hello Everybody ...short question:

My Inline code looks as follow:
$cashondelivery_cost = "0.50";
-------
I want to convert this to dynamic, I mean I want to get the value "0.50" from the Db.

The value "0.50" is stored on table "configuration" row called "configuration_value" of the key "CASHONDELIVERY"

Code shown like this but I can not get anything:
$cashondelivery_cost = tep_db_query("SELECT configuration_value from configuration where configuration_key='CASHONDELIVERY' ");

Any Help :-)
Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...