Forum Moderators: open
<?php
echo "<table>";
while ($row = mysql_fetch_array($result)){
echo "<tr><td>".$row['Firstname']." </td></tr><tr><td>".$row['email']." </td></tr><tr><td> ".$row['Phone']." </td></tr>";
}
echo "</table>";
?>
Any help appreciated
Cheers
Gary
In between the head tags:
#some-table-id {
width: 75%;
max-width:750px; /* or whatever, 75% on large rez. may be illegible */
margin:auto;
}
At the end of the page:
echo "<table id=\"some-table-id\">";
while ($row = mysql_fetch_array($result)){
echo "<tr><td>".$row['Firstname']." </td></tr><tr><td>".$row['email']." </td></tr><tr><td> ".$row['Phone']." </td></tr>";
}
echo "</table>";
?>
The result is the table still at the top left of the page but preceded by the #some-table-id lines just above it...
I'm obviously doing something stupid.
Again.