mayconvm Posted November 7, 2004 Report Share Posted November 7, 2004 para colocar imprimi o resultado o script esse mesmo: include ("conect.php"); $sql2 = mysql_query("select * from menssagens where home='$mac' "); $tr = mysql_num_rows($sql2); if($tr == 0){ echo "Erro no banco de dados..."; } else{ while ($linha=mysql_fetch_assoc($sq1)) { $nome = $linha['nome']; } echo " '.$nome.' "; ?> Quote Link to comment Share on other sites More sharing options...
0 Fabyo Posted November 7, 2004 Report Share Posted November 7, 2004 <?include ("conect.php");$sql = mysql_query("select * from menssagens where home = '$mac' ");$tr = mysql_num_rows($sql);if($tr == 0){ echo "Erro no banco de dados...";}else{ while ($linha=mysql_fetch_array($sql)) {$nome = $linha['nome'];}echo " '.$nome.' ";?> Quote Link to comment Share on other sites More sharing options...
0 Gladisson Posted November 7, 2004 Report Share Posted November 7, 2004 <?include ("conect.php");$sql2 = mysql_query("select * from menssagens where home='$mac' ");if(mysql_num_rows($sql2) == 0){ echo "NÃO EXISTE DADOS NO: banco de dados...";}else{ while ($linha=mysql_fetch_array($sq1)) { $nome = $linha['nome']; echo $nome; }}?> Quote Link to comment Share on other sites More sharing options...
Question
mayconvm
para colocar imprimi o resultado o script esse mesmo:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.