Displaying MySQL data inside of a table
| From: | SP Computing | Date: | Mon, 28 Jul 2003 14:08:18 +0000 |
| Subject: | Displaying MySQL data inside of a table | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157177@lists.php.net to get a copy of this message | ||
Hi all,
I have this code so far:
<?
mysql_connect(localhost, USER, PASS);
mysql_select_db(DB);
$result = mysql_query("SELECT * FROM tbl");
?>
Inside one of my tables, I have one field called IP which contains just over
a thousand IP addresses. I would like these IP addresses to be displayed
inside of a table like this:
<table border="1" cellpadding="5">
<tr>
<td>IP Address #1</td>
<td>IP Address #2</td>
<td>IP Address #3</td>
And so on...
</tr>
</table>
How do I go about acheiving this?
TIA,
SP Computing