I need help with this. I'm passing two variable through a html link as shown below :
<?php
//loop through the array
foreach ($precost1 as $value): ?>
<ul><li><a name="farmname" href="<?php echo base_url().'uploads/farms/'.$farm;'/'.$value->farmcycle;?>"><?php echo $value->cyclename;?></a></li></ul>
<?php endforeach; ?>
But the link is not working as expected, it ignores the second variable $value->farmcycle any help with the right syntax please?