Msg#: 4309714 posted 5:06 am on May 9, 2011 (gmt 0)
So I've been playing with this random quote generator that is supposed to change the font style based on length. All of that stuff is working more or less as intended (as in, I've not noticed anything screwy with it), but if it displays a quotation that was stored with tags (specifically, the break tag <br>), the browser doesn't execute them.
I was wondering why. Is it a case of improper nesting of php/html?
The entire script follows (barring the database access portion).
Msg#: 4309714 posted 7:19 am on May 9, 2011 (gmt 0)
My bad, I forgot to leave in the other sql instructions: @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT `quote`, `source` FROM `quote` ORDER by rand() LIMIT 1"; $result=mysql_query($query) or die(mysql_error()); $quote = htmlentities(mysql_result($result,$i,"quote"));
Whenever it populates in the page, it actually shows as