Pelvis Posted August 26, 2019 Share Posted August 26, 2019 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 More sharing options...
burt Posted August 26, 2019 Share Posted August 26, 2019 $cashondelivery_cost = CASHONDELIVERY; Don't overthink it Link to comment Share on other sites More sharing options...
Pelvis Posted August 26, 2019 Author Share Posted August 26, 2019 Jesus Burt!!!!!! Thank You!!!!! Link to comment Share on other sites More sharing options...
burt Posted August 26, 2019 Share Posted August 26, 2019 Anything in the configuration table is "auto loaded" ready to use, so you can just reference the configuration_key directly to get the value of it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.