ronnie88 Posted May 14, 2008 Share Posted May 14, 2008 function get_topPilot() { $p = new Pilot(); $p->getTop(); $rv = "<table>\n"; $rv .= "<tr><th>Pilot Name</th><th>VAdmin id</th><th>Total Hours</th></tr>"; $rv .= "<tr><td>".$p->fullname."</td><td>".$p->vadminid."</td><td>".$p->totalhours."</td></tr>"; $rv .= "</table>"; return ($rv); } function get_totalPireps($id) { $total = 0; $p = new Pirep(); $p->getAll(); foreach ($p as $pirep) { if ($pirep['pilotid'] == $id) { $total++; } } return ($total); } the echo is on the homepage like this: <? echo get_homepagepireps(); ?> <p class="content-title-noshade-size2"><font COLOR="#FFFFFF">Current top pilot</font></p> <? echo get_topPilot(); ?> I've tried just throwing a <font color..... and <HTML & <body codes before the <? echo usually works but didn't this time I'm trying to change the output color of the text... of both codes thanks Quote Link to comment Share on other sites More sharing options...
realjumper Posted May 14, 2008 Share Posted May 14, 2008 What about: <p class="content-title-noshade-size2"><span style="COLOR:#FFFFFF;">Current top pilot</span></p> Quote Link to comment Share on other sites More sharing options...
legohead6 Posted May 15, 2008 Share Posted May 15, 2008 take the quotes out, you dont use the quotes with color codes, only with colors eg <font color=#FFFFFF> or <font color="Black"> Quote Link to comment Share on other sites More sharing options...
ronnie88 Posted May 15, 2008 Author Share Posted May 15, 2008 nvm i got it just forgot my slashes in the font code $p = new Pilot(); $p->getTop(); $rv = "<table>\n"; $rv .= "<tr><th><font color=\"#00FF00\">Pilot Name</font></th><th><font color=\"#00FF00\">VAdmin id</font></th><th><font color=\"#00FF00\">Total Hours</font></th></tr>"; $rv .= "<tr><td><font color=\"#00FF00\">".$p->fullname."</font></td><td><font color=\"#00FF00\">".$p->vadminid."</font></td><td><font color=\"#00FF00\">".$p->totalhours."</font></td></tr>"; $rv .= "</table>"; return ($rv); 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.