I am working on a cms that will pull content from the database (dah) but when I pull the content it displays improperly. I've saved the content using a 'long text' field in the database. Here's what gets displayed:
Basic Camera Operation And Basic Field Production:
Basic knowledge of how to use a camcorder to videotape your event. Step by step breakdown on camcorder use, and do�s and don�ts of camera operations.
Training will cover the following:
Battery and AC use and applications (1 HR.)
* Tape loading
* Basic Auto settings for immediate recording
* Camera movement (do�s and don�ts)
o Panning left to right[/COLOR]
The page is not rendered with the CSS and those funky characters show up instead of ' or ". Is there somewhere where I should use something to 'decode' the content in the database?
Here's the PHP:
<div id="content">
<?php
$page = (isset($_GET['page'])) ? $_GET['page'] : "1";
$sql = "SELECT content FROM pages WHERE id='$page'";
$result = $conn -> query($sql) or die(mysqli_error());
if($result) {
$row = $result->fetch_object();
echo $row->content;
}
?>
</div>