Código PHP:
Ver original$muni=$row['municipio'];
echo "<link type='text/css' rel='stylesheet' href='demopage.css'/>";
echo "<table>
<thead><tr>
<th>Colonia</th>
<th>C.P.</th>
<th>ID estado (relacion)</th>
</tr></thead>";
que se supone que tendra $muni=$row['municipio']; si asignas recien la variable en varias lineas mas abajo?
while($row = mysql_fetch_array($result))
debes asignar antes de usar
saludos!