onthespot Posted August 7, 2006 Share Posted August 7, 2006 <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>[i]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![/i] Link to comment https://forums.phpfreaks.com/topic/16752-php-fonts/ Share on other sites More sharing options...
trq Posted August 7, 2006 Share Posted August 7, 2006 php has no concept of fonts, that is a client side html issue. [url=http://www.w3schools/html]Here[/url] might be a good place to start learning html. Link to comment https://forums.phpfreaks.com/topic/16752-php-fonts/#findComment-70433 Share on other sites More sharing options...
onthespot Posted August 7, 2006 Author Share Posted August 7, 2006 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? Link to comment https://forums.phpfreaks.com/topic/16752-php-fonts/#findComment-70436 Share on other sites More sharing options...
mainewoods Posted August 7, 2006 Share Posted August 7, 2006 replace this:[code]<td align=\"center\">[/code]with this:[code]<td align=\"center\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;\">[/code]-inline css Link to comment https://forums.phpfreaks.com/topic/16752-php-fonts/#findComment-70442 Share on other sites More sharing options...
corbin Posted August 7, 2006 Share Posted August 7, 2006 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... Link to comment https://forums.phpfreaks.com/topic/16752-php-fonts/#findComment-70444 Share on other sites More sharing options...
onthespot Posted August 7, 2006 Author Share Posted August 7, 2006 thankyou both, i used them and it worked, i will remember that for the future, cheers! Link to comment https://forums.phpfreaks.com/topic/16752-php-fonts/#findComment-70453 Share on other sites More sharing options...
simcoweb Posted August 7, 2006 Share Posted August 7, 2006 You can also use an external CSS by just linking to it in your echo statements. Then place your 'class' tags where appropriate. Link to comment https://forums.phpfreaks.com/topic/16752-php-fonts/#findComment-70461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.