Page 1 of 1

Stopped Working...

Posted: Sat Jan 18, 2003 1:20 pm
by eggoz
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. 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?

Code: Select all

<table style="border">
<tr>
<td>
<?php
print "<table style="products">\n"; 
while ( $a_row = mysql_fetch_row( $record ) ) &#123; 
   print "<tr>\n"; 
   foreach ( $a_row as $field ) 
      print "\t<td style="padding">$field</td>\n"; 
   print "</tr>\n"; 
&#125; 
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.

Posted: Sat Jan 18, 2003 8:38 pm
by Rob the R
Please don't cross-post. The answer to this is in another forum.

Sorry.

Posted: Sat Jan 18, 2003 11:50 pm
by eggoz
Sorry about that. I meant to post it on the other post, not here.