Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/01/2009, 09:42
calebgarcia
 
Fecha de Ingreso: enero-2009
Mensajes: 13
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: Problemas con sistema de libros

gracias argy ya puse el while antes de echo de los resultados pero nada a lo mejor la funcion del while no es la adecuada checa..

------------------------------------------------------------
Código php:
Ver original
  1. <?php  
  2. $var1=$_POST["textobusqueda"];
  3. $Area=$_POST["Area"];
  4. $radio= $_POST["tipo"];
  5. $resp=$_POST["respuesta"];
  6.  
  7.     $conexion = mysql_connect("localhost","xalaporg","@YfN5rk=8f4");
  8.     mysql_select_db("xalaporg_canacoxa",$conexion);
  9.    
  10.  
  11.  
  12.      
  13. if ($radio == "AUTOR" AND $resp=="SI")
  14. $result = "SELECT * FROM  Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from WHERE AUTOR='$radio' AND Area='$Area'";
  15. $result= mysql_db_query ("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where AUTOR='$radio' AND Area='$Area'");
  16.  
  17.  
  18.  
  19. if ($radio == "AUTOR" AND $resp=="NO")
  20. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where AUTOR='$radio' AND Area='$var1'");
  21.  
  22.  
  23.    
  24. if ($radio == "TITULO" AND $resp=="SI")
  25. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where TITULO='$radio' AND Area='$Area'");
  26.  
  27. if ($radio == "TITULO" AND $resp=="NO")
  28. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where TITULO='$radio' AND Area='$Var1'");
  29.  
  30. if ($radio == "CLAVE" AND $resp=="SI")
  31. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where CLAVE='$radio' AND Area='$Area'");
  32.    
  33. if ($radio == "CLAVE" AND $resp=="NO")
  34. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where CLAVE='$radio' AND Area='$Var1'");
  35.  
  36.  
  37.    
  38. ?>
  39.  
  40. -------------------------------------------------
  41.  
  42.  
  43. <?PHP
  44. while($row = mysql_fetch_array($result));
  45. {
  46. ?>
  47.  
  48.    
  49.  
  50. <td height="99"><span class="Estilo11"><FONT COLOR=BLUE><?PHP echo  $row["Clave"]; ?> </td>
  51. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Autor"]; ?> </td>
  52. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Titulo"]; ?></td>
  53. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["LugardeEdicion"]; ?></td>
  54. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Editorial"]; ?></td>
  55. <td><span class="Estilo11"><FONT COLOR=BLUE><?PHP echo $row["AñodeEdicion"]; ?></td>
  56. <td colspan="3"><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["NumerodePaginas"]; ?></td>
  57. <td width="84"><span class="Estilo11"><FONT COLOR=BLUE><?PHP echo $row["contenido"]; ?></td>
  58. <td width="60"><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Edicion"]; ?></td>
  59.        
  60. </TR>
  61. <?PHP
  62. }
  63. ?>
-------------------



aqui viene varias funciones en esta pagina puse algunas que segun pero nada

http://brak.unsl.edu.ar/php/ref.mysql.html

Última edición por GatorV; 22/01/2009 a las 09:54