Hello,
The following source lines generate a primitive table:
$rowsFound = @ mysql_num_rows($result);
if ($rowsFound > 0)
{
echo "Query results<br>";
echo "\n<table>\n<tr>" .
"\n\t<th>number</th>" .
"\n\t<th>name</th>" .
"\n\t<th>car</th>" .
"\n\t<th>comments</th>\n</tr>";
while ($row = @ mysql_fetch_array($result))
{
echo "\n<tr>" .
"\n\t<td>" . $row["no"] . "</td>" .
"\n\t<td>" . $row["name"] . "</td>" .
"\n\t<td>" . $row["car"] . "</td>" .
"\n\t<td>" . $row["comments"] . "</td>" .
"\n</tr>";
}
echo "\n</table>";
}
Since it has no border style, how can I add them so they can be part of the loop and I will have a pretty table in the end?
Li.