VeneHosting.com :: Tu Hosting en Venezuela

Autor Tema: Notice: Undefined variable: en ECHO PHP (RESUELTO)  (Leído 620 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado expecimen

  • Usuario Junior
  • **
  • Mensajes: 56
  • Puntuación: 1
  • Sexo: Masculino
    • Ver Perfil
    • Asociación Cooperativa Kodama Tecnologia, c.a.
Notice: Undefined variable: en ECHO PHP (RESUELTO)
« : 15 de marzo de 2011, 03:16:55 pm »
Saludos a todos de nuevo tengo un problema el cual tengo un sistema de consulta la cual consta de dos paginas php01 y php02

php01: en donde se encuentra la consulta a través de un menú desplegable (PENDIENTE, ANULADO, PAGADO).

php02: es donde muestra el resultado y se muestra así

EMPRESAS EN ESTADO DE: XXXXX

Y LA TABLA CON LOS DATOS DE LOS PAGOS

bien problema esta en donde me tiene que mostrar el estado de la empresa el cual me sale el siguiente aviso:

Notice: Undefined variable: registro in C:\xampp\htdocs\sedemat\industriacomercio\declara\ 01\consulta\estado02.php on line 51

y no me muestra el estado de la empresa, siendo la linea 51: <?php echo $registro['Estado']?>

este es el código de la tabla:

Código: [Seleccionar]
<?php
$link 
mysql_connect(DB_HOSTDB_USERDB_PASSWORD) or die ("Error en la Base de Datos");
$bd=mysql_select_db(DB_DATABASE,$link) or die ("Verifique la Base de Datos");
$Estado_vab=$_POST["Estado"];
if (
$Estado_vab!="")
{
    
$sql=mysql_query("SELECT * FROM `iyc` WHERE Estado LIKE &#39;%$Estado_vab%&#39;",$link);
    if (
mysql_num_rows($sql)>0)
    {
        
$tabla=mysql_query("SELECT * FROM `iyc` WHERE Estado LIKE &#39;%$Estado_vab%&#39;",$link);
        while (
$registro mysql_fetch_array($tabla))
        {
        echo &
#39;<table border="1" width="100%" id="table1" bordercolor="#000000" cellspacing="1" height="83" cellpadding="0" style="border-collapse: collapse">&#39;;
        
echo &#39;<tr>&#39;;
        
echo &#39;<td><p align="justify" style="margin-left: 5px"><b>FECHA<b></td>&#39;;
        
echo &#39;<td><p align="center"><b>PLANILLA<b></p></td>&#39;;
        
echo &#39;<td><p align="justify" style="margin-left: 5px"><b>PATENTE<b></td>&#39;;
        
echo &#39;<td><p align="justify" style="margin-left: 5px"><b>EMPRESA<b></td>&#39;;
        
echo &#39;<td><p align="justify" style="margin-left: 5px"><b>RIF<b></td>&#39;;
        
echo &#39;<td><p align="justify" style="margin-left: 5px"><b>PERIODO<b></td>&#39;;
        
echo &#39;<td><p align="justify" style="margin-left: 5px"><b>TOTAL<b></td>&#39;;
        
echo &#39;</tr>&#39;;
$tabla=mysql_query("SELECT * FROM `iyc` WHERE Estado LIKE &#39;%$Estado_vab%&#39;",$link);
        while (
$registro mysql_fetch_array($tabla))
{
   echo &
#39;<tr>&#39;;
   
echo &#39;<td width="5" height="30">&#39; . $registro[&#39;Fecha&#39;] . &#39; </td>&#39;;
   
echo &#39;<td><p align="center">&#39; . $registro[&#39;Inicial&#39;] . &#39;&#39; . $registro[&#39;Id&#39;] . &#39;</p></td>&#39;;
   
echo &#39;<td><p align="justify" style="margin-left: 5px">&#39; . $registro[&#39;Patente&#39;] . &#39; </td>&#39;;
   
echo &#39;<td><p align="justify" style="margin-left: 5px">&#39; . $registro[&#39;Empresa&#39;] . &#39;</td>&#39;;
   
echo &#39;<td><p align="justify" style="margin-left: 5px">&#39; . $registro[&#39;RIF1&#39;] . &#39;-&#39; . $registro[&#39;RIF2&#39;] . &#39;</td>&#39;;
   
echo &#39;<td><p align="justify" style="margin-left: 5px">&#39; . $registro[&#39;T1&#39;] . &#39; <font color="#0000FF">&#39; . $registro[&#39;T2&#39;] . &#39;</font> &#39; . $registro[&#39;T3&#39;] . &#39; <font color="#0000FF">&#39; . $registro[&#39;T4&#39;] . &#39;</font>  &#39; . $registro[&#39;Anios2&#39;] . &#39;</td>&#39;;
   
echo &#39;<td><p align="justify" style="margin-left: 5px">&#39; . $registro[&#39;total&#39;] . &#39; Bs.</td>&#39;;
   
echo &#39;</tr>&#39;;
}
echo &
#39;</table>&#39;; 
        
}

    }
    else
    {
        echo 
"¡No existen resultados para tu búsqueda!\n";
    }
}
else
{
    echo 
"<b>Error:</b> ¡Debes ingresar los datos correctamente!\n";
}
?>
« Última Modificación: 16 de marzo de 2011, 08:17:44 pm por expecimen »

PHP de Venezuela

Notice: Undefined variable: en ECHO PHP (RESUELTO)
« : 15 de marzo de 2011, 03:16:55 pm »

 

PHP de Venezuela on Facebook