ondi Posted December 28, 2008 Share Posted December 28, 2008 I cant for the life of me change the font size in this code: <tr> <td align=\"left\" valign=\"middle\" bgcolor=\"$temp\" > $data[opponent] </td> </tr> I've tried using font size=\"1\" but to no avail Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted December 28, 2008 Share Posted December 28, 2008 Try this: <tr> <td align=\"left\" valign=\"middle\" bgcolor=\"$temp\" > <span style=\"font-size:14px\">$data['opponent']</span> </td> </tr> Also. When using associative arrays, always remember to surround the name of the key with quotes. This will ensure that PHP doesn't confuse it with a constant. Quote Link to comment Share on other sites More sharing options...
ondi Posted December 28, 2008 Author Share Posted December 28, 2008 No luck with that ProjectFear, I get: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/fhlinux222/w/walthamforest-fc.co.uk/user/htdocs/stats/newplayer.php on line 355 Quote Link to comment Share on other sites More sharing options...
Noskiw Posted December 28, 2008 Share Posted December 28, 2008 try <?php echo "<tr>\n"; echo "<td align=\"left\" valign=\"middle\" bgcolor=\"$temp\" >\n"; echo "<span style=\"font-size:14px;\">".$data['opponent'] ."</span>\n"; echo "</td>\n"; echo "</tr>\n"; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.