Hello, I'm using cb1.7 and cbsubs. I use CB CONTENT on my site already, but would like to be able to display the CB CONTENT field conditionally, based upon the presence of another field from another table.
I'm not the best at php.
Can I insert the {cb:[cb_2]},{cb:[cb:userfield field="cb_2" /]}, or [cb_2] into a php echo? What about mysql query? It just displays the original text. Is it my syntax or an incompatibility with the substitution.
<?php
if ($num1 > 0) {
echo '{cb:[cb_2]}
';
}
?>
thoroughly confused!
fyi: i'm using jumi to inject the php into an article.
Thanks, Nat
This php works, and prints