-1
I need the cellular variable Celular: $lnbusca[celular]
to click and appear on the sample dial screen <a href="tel:55555"> chamar 5555</a>
for the time the user click appears the number on the cell phone dial screen, then how do I put the href
within the $lnbusca[]
, how do I do ?
<?php
include "config.php";
if(isset($_POST['acao']) && $_POST['acao'] == 'bsc'){
$palavra = strip_tags($_POST['pesquisa']);
$banco = mysql_query("SELECT * FROM agenda WHERE nome LIKE '%$palavra%'");
if(mysql_num_rows($banco) == 0){
echo "Nenhum dado foi encontrado!";
}else{
while($lnbusca = mysql_fetch_array($banco)){
//COMECO
echo "<table width=1000 align=center>";
echo "<td bgcolor=#ebf3ff><b></b>";
echo "</td>";
echo "<tr>";
echo "<td width=25>";
echo "<font size=1>Codigo: $lnbusca[id_contato]</font>";
echo "</td>";
echo "<td width=450 bgcolor=#ebf3ff>";
//echo "<b><a href='agenda-exibir.php?id_contato={$dados['codigo']}'><font color=black size=elvetica>$dados[nome]</font></a><br />";
echo "<b><font color=black size=elvetica>Categoria: $lnbusca[categoria] | "
. "Cidade: $lnbusca[cidade] | "
. "Nome: $lnbusca[nome] | "
. "Celular: $lnbusca[celular] | "
. "Celular2: $lnbusca[celular2] | "
. "Telefone: $lnbusca[telefone] </font></a><br />";
echo "</tr>";
echo "</td>";
echo "<td bgcolor=#f8f8fA>";
echo "</td>";
echo "</tr>";
echo "</td>";
echo "</table>"; //FIMM
}
}}
?>
Try to be clearer on the question, put some snippet of code you’ve already done. It’s hard to help without the details
– Amanda Lima
it’s to do so
<a href="tel:<?php echo $lnbusca['celular']; ?>"> Chamar <?php echo $lnbusca['celular']; ?> </a>
– Daniel Costa
I posted the code take a look the problem this here on adding href . " Cellular2: $lnbusca[cellular2] | " gives a look daniel
– checkmate