A few days ago I'm trying to make my DB search look inward to a bordered table. However, although the server does not return any errors, no results are shown. I have already made several changes in the syntax regarding the positioning of the tags tables, placing it internally in the WHILE but until now I did not get any success. Here is the last way I tried:
<html>
<head>
<title>Extraindo dados do BD</title>
</head>
<body>
<?php
mysql_connect("localhost","DB1","XXXX") or die(mysql_error());
mysql_select_db("database1") or die(mysql_error());
$selecaodedados= "SELECT * FROM meubancodedados";
echo "<table style="1px">";
echo "<thead> <tr> <th colspan='6'>Lista 1 </th></tr>"
."</tread>";
echo "<tr>"
."<th> A dado </th> <th> B dado </th> <th> C dado </th>"
." <th>D dado </th> <th> E dado </th> <th> F total </th>"
."</tr>";
echo "</thead>";
echo " <tbody>";
while($linha= mysql_fetch_array($selecaodedados)){
echo "<tr>"
."<td>".$linha['A']. "</td><td> ". $linha['B']"
. " </td><td> ".$linha['C']. "</td><td> ". $linha['D']"
. "</td><td> ". $linha['E']."</td><td> ".$linha['F']. "</td><br/>"
."</tr>";
}
echo "</tbody>";
echo "</table>";
mysql_close();
?>
</body>