Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- Populating a table using php


garywhite_glw - 9:00 pm on Dec 23, 2009 (gmt 0)


Hi

I have a need to get php to create a table a single column, multi-row table to display visitors details. At the moment I can only achieve the reverse - the visitors details appear as multi-columns in a single row table. No probs with the data retrieval side or MySQL. Any help gratefully received....

Cheers in advance
Gary

PS Code at moment looks like this:

while($row=mysql_fetch_array($result)){

echo "</td><td>";

echo $row['Firstname'];

echo "</td><td>";

echo $row['email'];

echo "</td><td>";

echo $row['Phone'];

echo "</td></tr>";

}


Thread source:: http://www.webmasterworld.com/html/4048592.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com