Jump to content

Joomla Data/Variables


carbonxps

Recommended Posts

Hi all,

 

I have a what I thought was a call to the db: $db->sp("attrib_stock1");

 

However when I try to calculate on this field or assign it's value to a variable it fails however if I put it in a page it actually echoes out the value.

 

If I were to say $blahblah = $db->sp("attrib_stock1");

 

echos $blahblah it would echo 0 (zero) but if I replace it with $db->sp("attrib_stock1");  it echoes out the value.

 

What does $db->sp mean? can I assign this value to a variable?

 

Thanks for any advice.

Link to comment
https://forums.phpfreaks.com/topic/258067-joomla-datavariables/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.