Jump to content

trouble scripting a line


niche

Recommended Posts

This produces a green box where the color comes from a style sheet: echo '<div class="box'.$counter.'" </div>';Now I need the color to come from a mysql database so I wrote this:echo '<div style="background-color:'.$row['box'];".' class="box'.$counter.'" </div>';I get a blank screen with no error messages. I'm sure I'm connecting to the database but this line doesn't work. I'm also sure it's something simple, but I don't see it. What am I doing wrong?Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...