bold text format in echo string ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eeau1973
Forum Commoner
Posts: 27
Joined: Sat Aug 19, 2006 4:49 pm

bold text format in echo string ...

Post by eeau1973 »

Hi everybody ...
I just wanna ask you how to give bold format to a text that i´m using in a php page ...
This is mi code ...

Code: Select all

 
echo (<strong>"just some text  "</strong>); print $row["just some text related"]; print ("<p>");
 
but this code is not working ... (i have this error in the internet explorer whn i try to load this page Parse error: syntax error, unexpected '<' )

i know that this issue can be very easy for many of you ,,, sorry for the inconvenience , but thanks in advance ... !
User avatar
lafever
Forum Commoner
Posts: 99
Joined: Sat Apr 05, 2008 2:03 pm
Location: Taylor, MI

Re: bold text format in echo string ...

Post by lafever »

You're missing your opening and closing quotations. You should probably read more on echo here

Your code should be

Code: Select all

 
echo '<strong>just some text </strong>';
 
Post Reply