开发者

PHP within <a> tag

开发者 https://www.devze.com 2023-01-28 13:29 出处:网络
Can anyone see what is wrong with this line of code? <li><a href=\'<?php base_url().\"company/view\" ?>\'View Companies</a&开发者_运维百科gt;</li>

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

精彩评论

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