Hello
I have this joke script on my website, and on the front page of the website, i have this little script that calls the newest joke, and shows it there.
The problem is, that in the original joke script, when the jokes are read by the users, the text formats as it should, meaning that all the spaces and line breakes are as they should. But on my front page, all the text is shown in a chunc without any line breakes.
The joke, as it should look like, can be seen here, from the original joke script:
http://www.humor.fo/kronikir/jokes.php?joke_id=56&cat_id=31&jtype=
And my little script that calls the joke and shows it, can be seen here:
http://www.humor.fo/kronika.php
The script that shows the joke on the frontpage is here:
<?php
mysql_connect("localhost", "runilo_mamb1", "password") or die(mysql_error());
mysql_select_db("runilo_mamb1") or die(mysql_error());
$query = "SELECT * FROM jokesite_jokes ORDER BY joke_id DESC;";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result) or die(mysql_error());
?>
<font size="2" face="Verdana" color="#557e9a"><b>
<?php echo $row['joke_text']. " </b></font><br /><br />Send inn av ". $row['name'];?>
Anybody know why both scripts don't show the text the same way?