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.

    评论

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services