PHP within <a> tag
Can anyone see what is wrong with this line of code?
<li><a href='<?php base_url()."company/view" ?>'View Companies</a&开发者_运维百科gt;</li>
Just look at the output: There is probably an echo
and the closing >
missing:
<li><a href='<?php echo base_url()."company/view" ?>'>View Companies</a></li>
<li><a href=" <?php echo base_url().'company/view'; ?>"> View Companies </a></li>
I guess that should do it
you are missing a semi-colon after your php statement
精彩评论