I am rather new to php and adding code php code to html. I wrote a php, which worked with no problem. After I added some html along with some css styles, it hasn't worked correctly. Pretty much, it ignores all my css codes. Will styles interfere with this in anyway? I have looked over my code more than enough times and it looks a ok to me. I have narrowed it down to this small section. Did I do this wrong?
<table style="border">
<tr>
<td>
<?php
print "<table style="products">\n";
while ( $a_row = mysql_fetch_row( $record ) ) {
print "<tr>\n";
foreach ( $a_row as $field )
print "\t<td style="padding">$field</td>\n";
print "</tr>\n";
}
print "</table>\n";
mysql_close( $link );
?>
</td>
</tr>
</table>
The only thing that is different is from my first script is the table that surrounds everything and the styles. Thanks for your help.