I am presently giving the command:
<?php echo str_ireplace( $url['word']['word'] , ( '<strong>' . $url['word']['word'] . '</strong>' ) , $url['word']['question'] ); ?></p>
I am using this in a "Word Of The Day" section of my web site. The purpose is that the word being used gets displayed in bold when viewed on the web page. For example:
What is the next **Aspiration** in your life you are working towards?
What I am really wanting to do is find a better way of inserting the <strong> tag around the word of the day. Right at the moment I have stored the words all with capitalization. I am hesitant to include HTML in the actual table so I can format this appropriately depending on any programming changes in the future. From the above example Aspiration is capitalized. But the "question" in the database is:
What is the next aspiration in your life you are working towards?
My database table structure is:
reference bigint
word text
question text
add_date timestamp with time zone
membership_reference
Is there a better way to add the <strong> and </strong> tags?