Stopped Working...

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Locked
eggoz
Forum Commoner
Posts: 43
Joined: Fri Dec 27, 2002 8:51 pm

Stopped Working...

Post 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.
Rob the R
Forum Contributor
Posts: 128
Joined: Wed Nov 06, 2002 2:25 pm
Location: Houston

Post by Rob the R »

Please don't cross-post. The answer to this is in another forum.
eggoz
Forum Commoner
Posts: 43
Joined: Fri Dec 27, 2002 8:51 pm

Sorry.

Post by eggoz »

Sorry about that. I meant to post it on the other post, not here.
Locked