I am a beginning with php, I have a book and everything, but I had a question about nesting html code. So far I have a table that calls data from my database, but I can not figure out to create links on one of the columns. Here is what I have:
print "<table border=1>\n";
while ( $b_row = mysql_fetch_row( $results ) ) {
print "<tr>\n";
foreach ( $b_row as $field )
print "\t<td>;
print "<a href="$field">$field</a>;
</td>\n";
print "</tr>\n";
}
print "</table>\n";
I'm sure by the code you can tell what I am trying to do. Yet, it doesn't work. Where am I going wrong on this? Thanks.