使手机号码可点击以在手机上拨号? [英] make phone number clickable to dial screen on mobile?
本文介绍了使手机号码可点击以在手机上拨号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何制作一个从mysql数据库中回显的电话号码?
How can i make a phone number that's being echoed in php from mysql database?
我是php和mysql的新手还在学习,请有人解释一下或者告诉我如何使电话号码可以点击进入手机上的拨号屏幕。
I'm new to php and mysql and still learning, please can someone explain or show me how to make a phone number clickable to go to the dialing screen on a mobile.
这是我在下面使用的代码,我需要调整我的'
Here's the code im using below, i some how need to adapt the hyperlink aroung my '
<?php
$user_type_set = user_type_profile();
while ($user = mysql_fetch_array($user_type_set)) { ?>
<div class="contact-buddy"></div><div class="contact-buddy2"></div>
<div class="contact_details_phone"><p><strong>Phone: <div class="phone_font"><strong><?php echo $profile['contact_number'] ?></strong></div></div></p>
<div class="contact_details_email"><p><strong>Email: <?php echo $profile['public_email'] ?></strong></p></div>
<? } ?>
推荐答案
这绝对适用于iphone,但我相信它也适用于机器人。你的php应该输出,因为它的最终产品类似于:
This should definitely work on iphones, but I believe it would work for androids as well. Your php should output as it's final product something similar to:
<a href="tel:1-800-555-5555">1-800-555-5555</a>
这篇关于使手机号码可点击以在手机上拨号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文