Is it possible to create bold text in a MySQL database text table field?
We are putting our articles in our database and I want to create bold titles and subtitles. Is this possible? Thanks
解决方案
Markdown
I would advise you to use a markdown-style formatting (PHP/.NET), which would mean bold-text would be stored like this:
**I am bold**
Storing HTML
If you can't use markdown on your project, you can store HTML as well - I would just be very careful about what tags you store. You wouldn't want somebody posting tags in your database for instance:
I am bold
Late-Styling
Or make all values from the title and subtitle fields bold when you print them on your page:
<?php print $row->title; ?>