Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/06/2012, 18:26
Avatar de skiper0125
skiper0125
 
Fecha de Ingreso: octubre-2010
Ubicación: $this->Mexico('Toluca');
Mensajes: 1.127
Antigüedad: 13 años, 7 meses
Puntos: 511
Respuesta: Warning mientras hago pruebas MySQL

Hola que tal. Bienvenid@ al foro

Tienes un error al momento de consultar los dato

Código PHP:
<?php
include ("conexion.php");
$sql="select * from lista";
$res=mysql_query ($sql);
?>
<html>
<head>
<title>Documento sin título</title>
</head>

<body>
<?php
while ($reg mysql_fetch_array ($res))
{
    
?>
<table width="600" border="1">
  <tr>
    <td><?php echo $reg["nombre"]; echo "<br>";?></td>
    <td><?php echo $reg["apellido"]; echo "<br>";?></td>
    <td><?php echo $reg["segundo_apellido"]; echo "<br>";?></td>
  </tr>
</table>
<?php
}
?>
</body>
</html>
Saludos
__________________
Recuerda que estamos aquí para orientarte, y no para hacer tu trabajo.
Si mi aporte fue de ayuda, recuerda que agradecer no cuesta nada +1

Skiper0125