Page 1 of 1

echo bold tag from database don't work

Posted: Thu Oct 13, 2005 10:09 am
by ljCharlie
I have a bunch of texts store in MySQL database. When I echo a field that has the tag "<strong></strong>, the texts is not bold. Here's what I tried.

Code: Select all

$var = '<STRONG>**</STRONG>Click <A href="eScholar.shtml">e-Scholar</A> for further information';
 
echo $var;
Now, the two ** are not bold. How do I fix this?

Thanks!

Posted: Thu Oct 13, 2005 10:33 am
by Jenk
use <b></b> not <strong></strong>

Posted: Thu Oct 13, 2005 10:54 am
by ljCharlie
Thank you for the response. No, using <b></b> doesn't show up as bold either. Even if it works, it will not work in my case because the program that I use to allow users to type in their texts will automatically put in <strong></strong> into the database field.

I think the problem here is not what tag I use but how I echo it out and I'm not sure what work around there is to have this work in my case.

Posted: Thu Oct 13, 2005 11:34 am
by Burrito
something else must be wrong as that should work just fine.

paste all of your code in here so we can have a better look.

edit:

try putting your <strong> around somethign else besides your astericks...my guess is that you're just not seeing the difference in those chars.

Posted: Thu Oct 13, 2005 12:44 pm
by jayshields
i think the same as burrito, change ** to test and then you will be able to tell if its bold or not.

Posted: Thu Oct 13, 2005 1:01 pm
by Chris Corbyn
*cough*
Look at your HTML source

*cough*

;)

Posted: Thu Oct 13, 2005 1:42 pm
by ljCharlie
Thank you for the help. Okay, I see it now. I got it.

Thanks!