dongxi1320 2016-01-20 17:16
浏览 91

在空白窗口中打开数据库提供的链接

I have a MySQL database in my php page that is a repeating field. The raw data being entered into the database is: <a href="http://www.link.com/">Link</a>

The code in my page works fine, but when I click on it in the browser, I need it to open in a _blank window. I know it's probably simple, but I cant find the answer anywhere.

My code on the page is: <?php echo $row_rsManufacturers['manufacturer']; ?>

How do I change it to open in a blank window?

Thanks

  • 写回答

2条回答 默认 最新

  • dongyan1974 2016-01-20 17:32
    关注

    In order to open a link in a new window you must add the target attribute.

    <a href="http://www.link.com/" target="_blank"> Link</a>
    

    Modify the links in the database to use the target attribute.

    评论

报告相同问题?