I am trying to use php to build a table on the fly. I am using some data that i queried from my database in the table that im creating. I have a variable called $table_block and i keep adding on to that variable html code.
In one part of my script i have
$table_block = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>";
and in another part of my code i have
$table_block .= "<tr>
<td>
<h4>$row['article']</h3>
</td>
</tr>";
Everytime I try to use a $row['anything'] i get a parse error. I know if i was using double quotes i would have to use a backslash, but this is a single quote. Do any of you know what im doing wrong. What i am doing is building this $table_block of html code in my php script then echoing it in the html code.
Any help would be greatly appreciated.
Ira