Código:
$lqs = "SELECT * FROM chat1";
$ress = mysql_query($lqs, $conex);
echo "<table class = 'tabletext'>";
echo "\t <th> nick </th>";
echo "\t <th> Mensaje </th>";
while ($row = mysql_fetch_array($ress)){
echo "<tr>";
echo "\t <td> $row[nick] </td>";
echo "\t <td> $row[mensaje] </td>";
echo "</tr>";
echo "</table>";
}
mysql_close($conex);
$ress = mysql_query($lqs, $conex);
echo "<table class = 'tabletext'>";
echo "\t <th> nick </th>";
echo "\t <th> Mensaje </th>";
while ($row = mysql_fetch_array($ress)){
echo "<tr>";
echo "\t <td> $row[nick] </td>";
echo "\t <td> $row[mensaje] </td>";
echo "</tr>";
echo "</table>";
}
mysql_close($conex);
La cuestion es que cuando introdusco datos, me salen en cualquier lado de la pantalla, no me respeta el orden de la tabla, le dejo una imagen para que lo vean,
Bueno, desde ya gracias!