tengo problemas con mi codigo php, llamo a la bd y traigo los datos y los muestro en una tabla, el problema es que los datos que vengan con acentos me los muestra asi []
alguna ayuda gracias !! http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png
Código PHP:
Ver original<?php
//Variables de conexion
$dbhost = "localhost";
$dbuser = "root";
$dbpassword = "";
$dbname = "automatizacion";
header('Content-Type: text/html; UTF-8');
//MOSTRAMOS TODAS LAS TABLAS
$sql = "SELECT `equipo`,`codigo`,`nombre`,`descripcion`,`solucion`,`periodo`,`estado`,`nivel de riesgo` FROM `resultados`";
// PARA CADA TABLA DESCRIBIMOS LOS CAMPOS
echo ("<table border= 3 >");
echo ("<tr>");
echo ("<td colspan=8><center>TABLA DE Racf</center></td>");
echo ("</tr>");
echo ("<tr>");
echo ("<td>Equipo</td>");
echo ("<td>Código</td>");
echo ("<td>Nombre</td>");
echo ("<td>Descripción</td>");
echo ("<td>Solución</td>");
echo ("<td>Periodo</td>");
echo ("<td>Estado</td>");
echo ("<td>Nivel de riesgo</td>");
echo ("</tr>");
$numero = 0;
//MOSTRAMOS LA INFORMACION DE LOS CAMPOS
{
echo '<tr>';
echo '<td width="2%">'.$Rs2['equipo'].'</td>';
echo '<td width="8%">'.$Rs2['codigo'].'</td>';
echo '<td width="3%">'.$Rs2['nombre'].'</td>';
echo '<td width="3%">'.$Rs2['descripcion'].'</td>';
echo '<td width="5%">'.$Rs2['solucion'].'</td>';
echo '<td width="1%">'.$Rs2['periodo'].'</td>';
echo '<td width="3%">'.$Rs2['estado'].'</td>';
echo '<td width="5%">'.$Rs2['nivel de riesgo'].'</td>';
echo '</tr>';
$numero++;
}
echo "<tr>
<td colspan=\"8\">
<font face=\"verdana\">
<b>Número: " . $numero . "</b>
</font>
</td>
</tr>";
echo '</table>';
?>