Using the code below, im getting a problem where it is printing out TWO of each field value instead of one...
For example, a table like id | name | age ---------------- 1 | russ | 22 2 | jon | 23 would print out for the first row... <tr><td>1</td><td>1</td><td>russ</td><td>russ</td><td>22</td><td>22</td> </tr> any ideas on whats going wrong? THanks in advance, and thanks to all who helped out w/ my last question. answered it in a second! -------------------------------------- $query = "SELECT * FROM volunteers"; $result = mysql_query($query); while($row = mysql_fetch_array($result)){ echo '<tr>'; foreach($row as $key=>$value) { echo '<td><font size=-2 face=verdana>' . $value . '</font></td>';} echo '</tr>'; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php