How the heck can i assign a value that has been assigned within PHP, then use the echo command to echo the value within HTML that is already within the PHP.....
Here\'s the deal. I am echoing results into an HTML table from a db, but depending on the counter value I want to return a different row value.
The value of $c holds a particular color, I want to assign the value of $c within the echo command of the TD value. I have tried just about everying. Appreciate any input!!
Brief example:
while ($row = mysql_fetch_array($result))
{
echo (\"<tr>\");
for ($x=0;$x<=$limit;$x++)
{
if(($x % 2) == 0) {$c = \"#9999CC\";}
else {$c = \"#CCCCCC\";}
echo (\"<TD BGCOLOR= $c ALIGN=CENTER VALIGN=TOP ROWSPAN=2><FONT FACE=trebuchet, verdana, arial, helvetica, sans-serif SIZE=2>\");
echo ($row[fdate]);