isauro, lo intente hacer como dices, y ya no me reporta error, pero cuando lo corro me pone el campo de texto vacio, sin el contenido que necesito.
para ver si tengo algo malo en mi consulta aqui la pongo
Código PHP:
$busqueda="SELECT * FROM municipio INNER JOIN disposicion_final ON disposicion_final.mun = municipio.mun INNER JOIN educacion_ambiental ON educacion_ambiental.mun = municipio.mun INNER JOIN residuos ON residuos.mun = municipio.mun and municipio.mun = '" . $mun . "'";
$datos=mysql_query($busqueda) or die(mysql_error());
//$datos=mysql_query($busqueda);
if(mysql_num_rows($datos)>0){
echo "Los datos son: ";
while ($row=mysql_fetch_array($datos))
{
{
//MUNICIPIO
echo '<tr><td>'."Municipio:".'</td>';
echo '<td>'.$row["mun"].'</td></tr>';
echo '<tr><td>'."Ubicacion:".'</td>';
echo '<td>'.$row["ubicacion"].'</td></tr>';
//SITIO DE DISPOSICION FINAL
echo '<tr><td>'."Sitio:".'</td>';
echo '<td><input type="text" name="sitio" value="' . $row["sitio"] . '"></td></tr>';