简体   繁体   中英

How to set mysql output phone number as clickable call link

I am facing the issue is mysql output result contain phone number [pnone] it should be clickable tel: link, please help me , code bellow

1个

This should work:

<a href="tel:$row['Phone']">$row["Phone"]</a>

Here's more info: https://css-tricks.com/the-current-state-of-telephone-links/

它对我有用

<td data-title="Phone" class="numeric"> <a href="tel:'.$row["Phone"].'">'.$row["Phone"].'</a></td> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM