Jump to content

insert breaks and bold into php


rushza

Recommended Posts

Hi all, my first post here, very cool forums indeed

 

 

I need some help with some code please.

 

here is the code snippet

 

	

print "<dl class=\"glossary_terms\">";
foreach($terms as $term){
	print "<dt>". $term->term ."</dt> <dd>". $term->definition ."</dd>";
        print "<br>";
}
print "</dl>";

 

I want to add in a break between the term and the term definition as well as bolding the term

 

How would I do this?

 

I have tried

 

print "<dt>". "<b>" $term->term "</b><br /> ."</dt> <dd>". $term->definition ."</dd>";

 

But I get an error

 

anyhelp would be great thanks

Link to comment
https://forums.phpfreaks.com/topic/141332-insert-breaks-and-bold-into-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.