Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/12/2010, 13:02
eduardo160
 
Fecha de Ingreso: julio-2010
Mensajes: 523
Antigüedad: 14 años, 7 meses
Puntos: 4
Respuesta: como hacer una consulta por el id

hola miren tengo esto
Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sin título</title>
  6. </head>
  7.  
  8. <body>
  9. <?
  10. include "conexion.php";
  11. include "menu/menu.php";
  12. if (isset($_SESSION['correo'])) {
  13.  
  14. $query= mysql_query("select* from registro where dato LIKE '$nombre', LIKE dato='$apellido',like dato='$correo'");
  15. while ($row=mysql_fetch_array($query))
  16. {
  17.     $_SESSION["apellido"] = $row['apellido'];
  18.    
  19.     echo "Resultados de la Busqueda";
  20.    
  21.     echo $_SESSION["nombre"];
  22.     echo $_SESSION["apellido"];
  23.     echo $_SESSION["correo"];
  24.    
  25. }
  26. }
  27. ?>
  28. </body>
  29. </html>



y eso me lanza el signt error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\sw\buscar.php on line 16