Foros del Web » Programando para Internet » PHP »

Se desarma el diseño

Estas en el tema de Se desarma el diseño en el foro de PHP en Foros del Web. Gente tengo el siguiente codigo que estoy haciendo y en donde me funciona todo perfecto solo que cuando incorporé mi php al diseño en html ...
  #1 (permalink)  
Antiguo 28/09/2010, 07:08
Avatar de jimadri  
Fecha de Ingreso: julio-2006
Ubicación: Buenos Aires
Mensajes: 487
Antigüedad: 17 años, 10 meses
Puntos: 1
Se desarma el diseño

Gente tengo el siguiente codigo que estoy haciendo y en donde me funciona todo perfecto solo que cuando incorporé mi php al diseño en html a la hora de mostrar los resultados de una busqueda se me desarma todo el diseño.
Que es lo que estoy haciendo mal?

Gracias


Código PHP:
<?php 
$busq 
"select Id_inv, marcadet, tipodet, modelodet, codint from ((inventario inner join marca on inventario.id_marca = marca.id_marca) inner join modelo on inventario.id_modelo = modelo.id_modelo) inner join tipo on inventario.id_tipo = tipo.id_tipo where ";
  
      if (isset(
$_POST["buscarbtn"]))
    {
        
$clave $_POST['busqtxt'];
        
        
$busq $busq."modelodet like '%$clave%' or marcadet like '%$clave%' or tipodet like '%$clave%' and ";
    }
    
    
$busq $busq." estado = 1 order by tipodet";

      
$busca mysql_query($busq$coneccion) or die ("No se consulto inventario");
    
    
$cantbusq mysql_num_rows($busca);
    
?>
      <table bgcolor="#EFEFEF" width="600" border="0">
        <tr>
          <td width="530" height="60"><form action="invent2.php" method="post">
            <div align="center">
              <table border="0">
                <tr>
                  <td><input name="busqtxt" type="text" /></td>
                  <td><input name="buscarbtn" type="submit" class="form_boton" id="buscarbtn" value="Buscar" /></td>
                </tr>
              </table>
            </div>
          </form></td>
        </tr>
      </table>
      <p>&nbsp;</p>
      <table width="600"  height="25" border="0">
        <tr>
          <td width="530" class="txt_comunresalte"><?php

if ($cantbusq >= 1) {

if (
$cantbusq == 1) {

    echo 
"El intentario contiene solo 1 registro ingresado";
                    }
                    else
                    {
                        echo 
"El inventario contiene $cantbusq registros";
                    }

?></td>
        </tr>
      </table>
      <table width="600" border="1" cellpadding="0" cellspacing="0">
        <tr bgcolor="#CCCCCC">
          <td width="61" height="30" bgcolor="#EFEFEF"><div align="center" class="txt_comunresalte">
            <div align="center">Tipo</div>
          </div></td>
          <td width="114" height="30" bgcolor="#EFEFEF" class="txt_comunresalte"><div align="center">Modelo</div></td>
          <td width="92" height="30" bgcolor="#EFEFEF" class="txt_comunresalte"><div align="center">Marca</div></td>
          <td width="118" height="30" bgcolor="#EFEFEF" class="txt_comunresalte"><div align="center">Codigo int</div></td>
          <td width="95" height="30" bgcolor="#EFEFEF" class="txt_comunresalte"><div align="center">Acciones</div></td>
        </tr>
        <?php 
        
while ($datos mysql_fetch_array($busca))
        {
            
$marca $datos['marcadet'];
            
$idinv $datos['Id_inv'];
            
$tipo $datos['tipodet'];
            
$modelo $datos['modelodet'];
            
$codint $datos['codint'];
    
?>
        <tr>
          <td height="30" class="txt_comun"><div align="center"><?php echo "$tipo"?></div></td>
          <td height="30"><div align="center" class="txt_comun">
            <div align="center"><?php echo "$modelo"?></div>
          </div></td>
          <td height="30"><div align="center" class="txt_comun">
            <div align="center"><?php echo "$marca"?></div>
          </div></td>
          <td height="30"><div align="center" class="txt_comun">
            <div align="center"><?php echo "$codint"?></div>
          </div></td>
          <td height="30"><div align="center"><a href="invdet.php?dato=<?php echo "$idinv"?>" title="VER DETALLE DEL ARTICULO" target="_self" class="link_faq">Ver</a> | <a href="invdetedit.php?dato=<?php echo "$idinv"?>" class="link_faq">Editar</a></div></td>
        </tr>
        <?php
        
}
?>
      </table>
      <?php
}
else 
{
    
?>
      <table width="600" border="0">
        <tr>
          <td width="530" height="30"><div align="center" class="txt_comunresalte">
            <div align="center">No se encontr&oacute; ninguna coincidencia</div>
          </div></td>
        </tr>
      </table>
      <?
}
    
mysql_close($coneccion);
?>

Etiquetas: diseño
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:16.