Page 1 of 1

bold text format in echo string ...

Posted: Sat May 10, 2008 11:45 pm
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 ... !

Re: bold text format in echo string ...

Posted: Sat May 10, 2008 11:53 pm
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>';