开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜