Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can I use configuaration table values in function?


Acheron

Recommended Posts

Posted

The function I created is:

 

function limit_words($string,$limit)

 

Usage would be, for example:

 

$wordoutput = limit_words($word_string, 10);

 

Is it possible to instead use a value from the configuration table? i.e. Can I use MAXWORDS from that table instead of the '10' ?

 

I thought it would be something simple but so far I have been unable to use the configuration variable - it simply doesn't recognize it. TIA for any help. :)

Archived

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

×
×
  • Create New...