PHP代码:
foreach( )
{
if()
{
$title = $title . $sub['TITLE']."<br />";
}
}
echo '<a title="$title"> </a>';
Run Code Online (Sandbox Code Playgroud)
当我将光标放在锚标签中时,标题应该逐个显示
i.e A
b
c
Run Code Online (Sandbox Code Playgroud)
但它现在显示为
A <br />
B <br />
C <br />
Run Code Online (Sandbox Code Playgroud)
为什么破坏标签显示在这里?
而且我还需要知道如何删除<br/>ie只是<br/>字符串中的最后一个标签?
我正在使用CodeIgniter.当用户编辑URL参数时,我收到数据库错误.
我怎么解决这个问题?在CodeIgniter中,我在URL中传递值32
http://xyz.com/esebd2/user/link/link_detail/32
Run Code Online (Sandbox Code Playgroud)
如果用户如下所示编辑此内容,
http://xyz.com/esebd2/user/link/link_detail/323434
Run Code Online (Sandbox Code Playgroud)
我收到数据库错误.该怎么办?
function link_detail()
{
$this->common_head();
$lid = $this->uri->segment(4);
$link_data['link_detail'] = $this->linklist->get_detail_link($lid);
//above line to retrive value from database
$this->load->view('user/detaillink_view', $link_data);
$this->common_footer();
}
Run Code Online (Sandbox Code Playgroud)