desjardins2010 Posted December 7, 2010 Share Posted December 7, 2010 hello all I'm VERY new to php and I just have a simple question how do I bold the output text of this string echo $row['name']."<BR>"; Quote Link to comment https://forums.phpfreaks.com/topic/220940-very-simple-question/ Share on other sites More sharing options...
Rifts Posted December 7, 2010 Share Posted December 7, 2010 echo "<b>".$row['name']."</b><BR>"; Quote Link to comment https://forums.phpfreaks.com/topic/220940-very-simple-question/#findComment-1144044 Share on other sites More sharing options...
Spring Posted December 7, 2010 Share Posted December 7, 2010 You should start using <br /> instead of <BR> <BR> is old HTML which is dieing. Quote Link to comment https://forums.phpfreaks.com/topic/220940-very-simple-question/#findComment-1144046 Share on other sites More sharing options...
Pikachu2000 Posted December 7, 2010 Share Posted December 7, 2010 you should use whichever line break is appropriate for the doctype. If it's html. The break is <br>, for xhtml it's <br />. Quote Link to comment https://forums.phpfreaks.com/topic/220940-very-simple-question/#findComment-1144051 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.