simple table Class issue

Soldato
Joined
9 Dec 2006
Posts
9,287
Location
@ManCave
So its been a really long day & only got 1 thing to get working.

please help me out my mind is to tired to see the obvious now

what have imissed :(

what works
PHP:
Print "<td>".$info['User']."</td> ";

What doesnt
PHP:
Print "<td class="datacellone">".$info['User']."</td> ";
 
Soldato
Joined
29 Apr 2007
Posts
4,843
Location
London
Try this

PHP:
Print "<td class=\"datacellone\">".$info['User']."</td> ";

The back slashes prevent the String from being terminated by the double quotes.
 
Associate
Joined
8 Aug 2008
Posts
302
Try this

PHP:
Print "<td class=\"datacellone\">".$info['User']."</td> ";

The back slashes prevent the String from being terminated by the double quotes.

Or just use single quotes


PHP:
Print '<td class="datacellone">'.$info['User'].'</td>';
 
Back
Top Bottom