I inserted some data from phpMyAdmin, it seems to be fine on phpMyAdmin image, but when I use PHP output the result from MYSQL, it becomes: image
PHP code:
function showTableRows($db)
{
$sql = "SELECT * FROM forums ORDER BY id";
$stmt = $db->prepare($sql);
$stmt->execute();
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row)
{
$forum_id = $row['forum_id'];
echo '<tr>';
echo '<td>';
echo '<a href="viewforum.php?forum='. $forum_id .'">'. $row['name'] .'</a>';
echo '<br>';
echo '<small>'. $row['description'] .'</small>';
......
MYSQL collation already set to utf8_general_ci
HTML charset already set to utf-8
What am I missing??