Ver Mensaje Individual
  #12 (permalink)  
Antiguo 07/07/2011, 15:27
Avatar de skiper0125
skiper0125
 
Fecha de Ingreso: octubre-2010
Ubicación: $this->Mexico('Toluca');
Mensajes: 1.127
Antigüedad: 13 años, 6 meses
Puntos: 511
Respuesta: PHP listar columna y pasar datos a otra pagina

Cita:
Iniciado por lsmadueno10 Ver Mensaje
Me sale esto mira hermano:
Notice: Undefined variable: res in E:\Software colaborativo\opengoo_1.3.1\opengoo\form\form\rt\co c.php on line 10

Notice: Undefined variable: res in E:\Software colaborativo\opengoo_1.3.1\opengoo\form\form\rt\co c.php on line 10

Notice: Undefined variable: res in E:\Software colaborativo\opengoo_1.3.1\opengoo\form\form\rt\co c.php on line 10
No puede ser 2 errores continuos jaja (Hoy no es mi día) jaja

Prueba esto

Código PHP:
Ver original
  1. $id = $_GET['id'];
  2.     $link=mysql_connect("tu_servidor","tu_usuario","tu_contrasenia") or die (mysql_error());
  3.         mysql_select_db("tu_base",$link) or die (mysql_error());
  4.         $sql = mysql_query("SELECT * FROM agenda WHERE id='$id'") or die ("Error en el query: ".mysql_error());
  5.      
  6.     while($res=mysql_fetch_array($sql)){
  7.              echo $res['id'].$res['nombre'].$res['email'];
  8.     }
__________________
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