Stock Data question
buzzdroids - April 22, 2009 - 08:37
Hi - I am using Content Template to bring in Stock module data.
I created a field called "stock_symbols" and want to pipe that in to this php code:
<?php
print stock_do_quote('short', 'AAPL GOOG MSFT YHOO');
?>Change to something like this...
<?php
print stock_do_quote('short', '<?php print check_plain($node->field_stock_symbols[0]['view])
?>?>
Unfortunately it's not working - any ideas?
NEVERMIND... figured it out - I'm using this:
<?php
($stoxx = $node->field_stock_symbols[0]['value']);
print stock_do_quote('long', $stoxx)
?>