I wish to perform the following in the body of CC:
I have picked up the $row->dogReg instead of {dogReg} and it will not display anything. I can hard code the WHERE and that part will display but it seems that $row->dogReg does not display.
Outside of the php tags, {dogReg} works fine.
Sorry, just learning this, but the SELECT statement should also return 1x record, not sure how to show this other than above.
I would prefer to use a more complex SQL statement for the opening of the CC document, but I believe that this is not possible???
Help???
<?php
$db =& JFactory::getDBO();
$db->setQuery("SELECT txtRegno, txtRegName FROM easy_cfrmDogRegister WHERE txtRegno = '$row->dogReg'");
$dogs = $db->loadObjectList();
foreach ($dogs as $dog) {
echo ($dog->txtRegName . " (" . $row->dogReg . ")");
}
?>
I have picked up the $row->dogReg instead of {dogReg} and it will not display anything. I can hard code the WHERE and that part will display but it seems that $row->dogReg does not display.
Outside of the php tags, {dogReg} works fine.
Sorry, just learning this, but the SELECT statement should also return 1x record, not sure how to show this other than above.
I would prefer to use a more complex SQL statement for the opening of the CC document, but I believe that this is not possible???
Help???