Jump to content


Photo

php fonts


  • Please log in to reply
6 replies to this topic

#1 onthespot

onthespot
  • Members
  • PipPipPip
  • Advanced Member
  • 424 posts

Posted 07 August 2006 - 01:22 AM

<span class="style5">
<?
}

echo "</td></tr><tr><td align=\"center\"><br><br>";
echo "<b>Member Total:</b> ".$database->getNumMembers()."<br>";
echo "There are $database->num_active_users registered members and ";
echo "$database->num_active_guests guests viewing the site.<br><br>";

include("include/view_active.php");

?>
</span>


Can someone please help me! I want to make all the "echo" information, in a certain font, say Tahoma! Can someone please modify the code for me, would be greatly appreciated!

Thankyou!


#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 07 August 2006 - 01:24 AM

php has no concept of fonts, that is a client side html issue. Here might be a good place to start learning html.

#3 onthespot

onthespot
  • Members
  • PipPipPip
  • Advanced Member
  • 424 posts

Posted 07 August 2006 - 01:32 AM

mate, PMSL, i no how to do html etc, im just starting at php though! but that php code, is like something that i cant seem to be able to use html on! its information requested from the DB, and therefore i cant make the font for it like i would anything else! so i was tryin to ask where i put the html? or the font face?

#4 mainewoods

mainewoods
  • Members
  • PipPipPip
  • Advanced Member
  • 685 posts
  • LocationMaine

Posted 07 August 2006 - 01:59 AM

replace this:
<td align=\"center\">
with this:
<td align=\"center\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;\">
-inline css

#5 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 07 August 2006 - 02:02 AM

echo "</td></tr><tr><td align=\"center\">

";
echo "<font face=\"Tahoma\">";
echo "Member Total: ".$database->getNumMembers()."
";
echo "There are $database->num_active_users registered members and ";
echo "$database->num_active_guests guests viewing the site.
";
echo "</font>";

is what i think youre looking for... Not sure though...
Why doesn't anyone ever say hi, hey, or whad up world?

#6 onthespot

onthespot
  • Members
  • PipPipPip
  • Advanced Member
  • 424 posts

Posted 07 August 2006 - 02:21 AM

thankyou both, i used them and it worked, i will remember that for the future, cheers!

#7 simcoweb

simcoweb
  • Members
  • PipPipPip
  • Advanced Member
  • 1,102 posts
  • LocationCA

Posted 07 August 2006 - 03:06 AM

You can also use an external CSS by just linking to it in your echo statements. Then place your 'class' tags where appropriate.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users